import type { FileSet, Tool, ToolInvocation } from '@variance-authority/mcp/tools'; import type { Help } from '@variance-authority/package/help'; /** * `docs_symbol` — what a name is and where it is declared, in full. * * Answered for every declaration of the name, each by its file and line, and * each for every specifier that publishes it rather than for the first: a * declaration reachable from a barrel and from a subpath is one thing with two * import lines, and picking one of them for the caller would make the line they * write depend on which door this reading walked through first. Two files that * declare the name are two things, each answered with its own doors and imports. */ export declare const symbol: Tool; /** {@link symbol}'s `files`, with the names each declaration is written by. */ export declare function declaredInCheckout(help: Help, input: Readonly>, invocation: ToolInvocation | undefined): Declared; /** The files that declare a name, each at its lines, and every name each `file:line` is written by there. */ export interface Declared extends FileSet { readonly spelled: ReadonlyMap; /** Each `file:line` whose declaration only binds the name, kind `binding`, to a value defined elsewhere. */ readonly bound: ReadonlySet; } /** * The files an answer about a name rests on, to be compared with the checkout: * those {@link symbol}'s `files` gives, every export of the name, whose imports * the answer counts, and for a published declaration each entry and each barrel * between that entry and its file, through which the answer teaches its import. * The barrels are what the answer's own walk of who imports the name found: it * is made once per generation, by whichever of the two comes first, so a look * adds stats and no reading. */ export declare function restsOn(help: Help, input: Readonly>, invocation?: ToolInvocation): Iterable; /** {@link restsOn} for `uses`, which says nothing of a name bound by `as`, and so rests on no such binding. */ export declare function usesRestsOn(help: Help, input: Readonly>, invocation?: ToolInvocation): Iterable; //# sourceMappingURL=symbol.d.ts.map