/**
 * `GET /api/node/<id>` — everything the Symbol view draws, in one round-trip.
 *
 * The Symbol view is three panes and a strip: callers on the left, the verbatim
 * body in the middle with a port per call site, callees on the right anchored
 * to those lines, and a blast-radius summary underneath. Splitting that across
 * five endpoints would mean five waterfalls before the screen settles, and the
 * screen is the product. So this endpoint answers all of it.
 *
 * Two properties it has to hold, and the reasons they are not obvious:
 *
 * **No N+1, anywhere.** The engine's own busiest symbol has 545 incoming edges.
 * Resolving those one `getNode` at a time is 545 queries and blows the budget on
 * its own; so every edge list is resolved with one batched `getNodesByIds`, and
 * fan-in for the rail pills comes from one batched `getFanIn`.
 *
 * **Capped lists that still tell the truth.** 545 callers cannot all be rows,
 * but the payload must never suggest there are fewer. Every list carries the
 * true `total` beside the `shown` slice, and the ordering is chosen so the
 * slice is the useful end: same file first, then production code, then tests.
 */
import type { CodeGraph } from '../../index';
import { type WireOverride } from './hierarchy';
import { type WireNodeRef } from './wire';
/** A member row in the focal symbol's outline, with its place in the tree. */
export interface WireMember extends WireNodeRef {
    /** The container this member belongs to — the focal node, or one of its children. */
    parentId: string;
    /** 1 = direct member, 2 = a member of a member (a class's method inside a file). */
    depth: number;
    /**
     * Edges in and out of this member — the outline's `← in  → out` columns.
     *
     * A container's own fan-out is usually zero (a class calls nothing; its
     * methods do), so without these an outline of a 700-line class says nothing
     * about which member is load-bearing and which is a getter. Edge counts, not
     * distinct counterparts: the column is a weight, and it sits beside a
     * signature rather than beside a caller list it could contradict.
     */
    fanIn: number;
    fanOut: number;
    /**
     * This member redeclares one an ancestor type declares — a name match inside
     * a chain the graph already links, not an `overrides` edge (nothing emits
     * one). Absent for every member that declares something new.
     */
    overrides?: WireOverride;
}
export declare function buildNode(cg: CodeGraph, projectRoot: string, nodeId: string): Promise<unknown>;
export interface WireTestSummary {
    /** A test file reaches this symbol within {@link TEST_CALLER_HOPS} caller hops. */
    reached: boolean;
    /** How many hops away the nearest test was. 1 = a test calls it directly. */
    hops: number | null;
    fileCount: number;
    files: string[];
    /**
     * The search finished rather than running out of budget. `false` weakens the
     * claim from "no test reaches this within 3 hops" to "no test calls this
     * directly", which is all that was actually checked.
     */
    exhaustive: boolean;
    hopsSearched: number;
}
export interface WireBlastSummary {
    /** Distinct symbols that depend on this one directly. */
    direct: number;
    /** Distinct symbols reached within {@link BLAST_DEPTH} dependency hops. */
    withinHops: number;
    hops: number;
    files: number;
    testFiles: number;
    routes: number;
    /** Up to 40 of the dependent files, most-affected first, for the "what would need re-checking" fold. */
    topFiles: Array<{
        file: string;
        symbols: number;
        test: boolean;
    }>;
}
//# sourceMappingURL=node.d.ts.map