/**
 * Where a route's code starts — the symbol that runs when a request arrives
 * at `POST /users`, or when a navigation lands on `/capture/review`.
 *
 * Every framework resolver binds a route node to what serves it, but not with
 * the same edge: Expo Router and the React page routers draw a `calls` edge
 * to the component the screen file exports; Express (named handler), NestJS,
 * Spring, FastAPI / Flask / Django, ASP.NET, Vapor, Gin and the React Router
 * draw a `references` edge to the handler; an Express route whose handler is
 * an inline arrow has no handler node at all — the resolver attributes the
 * body's calls to the route itself. The Steps and Screens pictures need ONE
 * answer per route, so this is it, in order of evidence:
 *
 * 1. the target of a `references` edge that is a function, a method, or a
 *    class (a DRF ViewSet, a class-based view) — the handler the resolver
 *    named at the registration site;
 * 2. the target of a `calls` / `instantiates` edge that is a component — the
 *    page a file-routed screen exports;
 * 3. the route itself, when it carries `calls` edges and nothing else — the
 *    inline handler, walked as if the route were the function;
 * 4. nothing: the route is drawn alone, and the picture says so.
 *
 * A route whose handler is a DIFFERENT symbol from what the routing manifest
 * names would be a resolver bug, not a case to arbitrate here — both read the
 * same edges.
 */
import type CodeGraph from '../../index';
import type { Node } from '../../types';
export interface RouteRoot {
    /** The symbol a walk from the route starts at; the route itself for an inline handler. */
    node: Node;
    /** The route's handler is an anonymous function at the registration site — the route node stands in for it. */
    inline: boolean;
}
/** A React component, by the convention that names one: a PascalCase function in a JS-family file. */
export declare function looksLikeComponent(node: Node): boolean;
/**
 * Route id → the layouts it renders inside, outermost first: an Angular
 * parent route's component around its `<router-outlet>`. What happens in a
 * layout — its tabs, its buttons — happens on every screen nested in it.
 */
export declare function routeLayouts(cg: CodeGraph, routes: readonly Node[]): Map<string, string[]>;
/** Route id → where its code starts, for every route that has an answer. */
export declare function routeRoots(cg: CodeGraph, routes: readonly Node[]): Map<string, RouteRoot>;
//# sourceMappingURL=route-roots.d.ts.map