/**
 * `GET /api/entrypoints` — where to start reading a project you have never
 * opened, and where a flow starts.
 *
 * The empty state, the resting search palette and the entry-points panel all
 * have the same problem: a graph of thirteen thousand symbols and no obvious
 * door. Four answers, every one of them derived from the graph rather than
 * from a filename convention:
 *
 * - **Routes** — a request arriving from outside is the most literal entry a
 *   codebase has. Straight from the routing manifest (`/api/routes`), and
 *   absent for a project that is not a routed app. Carried with the file the
 *   URL is REGISTERED in as well as the one that serves it, because a router
 *   file is how a reader groups routes and the two are rarely the same file.
 * - **Files that run something** — the engine records a statement at the top
 *   level of a file as an edge out of the *file* node, so a CLI, a worker
 *   entry or a build script has `calls` where a library module has none. That
 *   is what makes `src/bin/codegraph.ts` the root of this repo's CLI flow.
 *   Ranked by calls x how many other files they reach, so the file that both
 *   runs and wires the project together outranks a registration table that
 *   makes a hundred module-level calls into itself.
 * - **Tests** — the other direction: not where the project starts, but what
 *   already exercises it. Ranked by how many other files a test reaches, so
 *   the suites that cross the most of the codebase come first.
 * - **Hubs** — the most depended-on symbols. Not an entry in the "runs first"
 *   sense; an entry in the sense that reading one tells you the most about
 *   what the project is made of, and a change to one radiates furthest.
 *
 * Tests and fixtures are excluded from the two *reading* lists — "where do I
 * start reading" never means a test — and the Tests list is built from the
 * narrow {@link isTestPath}, not from {@link isTestFile}: an example, a
 * benchmark or a fixture is not a test, and a heading that says "Tests" must
 * not be quietly counting them.
 */
import type { CodeGraph } from '../../index';
import { type WireRoute } from './routes';
import { type WireList, type WireNodeRef } from './wire';
export interface WireEntryFile extends WireNodeRef {
    /** Calls and instantiations made at the top level of the file. */
    calls: number;
    /** Distinct other files this one's symbols reach. */
    reaches: number;
    /** Other files reaching into this one. Zero means nothing imports it. */
    dependents: number;
}
export interface WireEntryTest extends WireNodeRef {
    /** Distinct other files this test reaches — what it exercises. */
    reaches: number;
    /** References behind that reach. */
    refs: number;
}
export interface WireEntryHub extends WireNodeRef {
    /** Distinct symbols that depend on this one. */
    dependents: number;
}
export interface WireEntryPoints {
    /**
     * Frameworks the resolver detected, e.g. `["go"]`, `["express"]`.
     *
     * The Routes section's header names them: a route list is a claim about a
     * framework's conventions, and saying which one produced it is the
     * difference between a fact and an assertion.
     */
    frameworks: string[];
    routes: {
        routed: boolean;
        /** Every `route` node in the graph, resolved handler or not. */
        routeCount: number;
        items: WireList<WireRoute>;
    };
    /** `total` is a floor on these three — the server counts what its scan saw. */
    files: WireList<WireEntryFile>;
    tests: WireList<WireEntryTest>;
    hubs: WireList<WireEntryHub>;
    index: {
        lastIndexedAt: number | null;
        files: number;
    };
    timing: {
        elapsedMs: number;
        cached: boolean;
    };
}
export declare function resetEntryPointsCache(): void;
export declare function buildEntryPoints(cg: CodeGraph, query: URLSearchParams): WireEntryPoints;
/**
 * The line spans (1-based, inclusive) of a Swift file's top-level
 * `#Preview { … }` macros, trailing closures included — WidgetKit's
 * `#Preview(as: .systemSmall) { … } timeline: { … }` is one preview.
 */
export declare function swiftPreviewSpans(text: string): Array<[number, number]>;
//# sourceMappingURL=entrypoints.d.ts.map