/** * A name an import renames, answered in both directions. * * `import { stringReader as openStrings } from './strings.js'` binds * `openStrings` in its file to the export `stringReader` of the file the * request resolves to. The binding the parse recorded is the one fact that ties * the two names, so `symbol` asked for `openStrings` reads the binding and * answers the export it names, and asked for `stringReader` says which files * know it as something else. Nothing is related by how a name is spelled. */ import { type Help, type Use } from '@variance-authority/package/help'; import { keyOf } from './declaration-key.js'; /** * The line naming every site of `name` its file knows by another name: the one * its import binds it to with `as`, or else the one a re-export renamed it to. * Nothing when every site keeps the name. */ export declare function renamedSites(name: string, sites: readonly (Use & { readonly name?: string; })[]): readonly string[]; /** A declaration by its file and its declared name, as {@link keyOf} keys it: one string for one declaration. */ export declare function declarationKey(help: Help, root: string | undefined, held: Parameters[2]): string; /** * One local name's answer: `text` in full, and `brief` when its original is * declared in the checkout, which says the declaration by its line instead of * showing it again. `key` is that declaration by its file and its declared * name, as {@link keyOf} keys it. */ export interface LocalName { readonly text: string; readonly brief?: { readonly text: string; readonly key: string; }; } /** * What `symbol` says about `local` as a name imports bind: for each export it * names, the imports that rename it and the export itself, and the files and * lines that declare both. `wanted` keeps the exports of that package. Nothing * when no import binds `local` to another name, or no source index is read. */ export declare const localNames: (help: Help, root: string | undefined, local: string, wanted: string | undefined) => { readonly blocks: readonly LocalName[]; readonly files: readonly (readonly [string, number, string])[]; }; //# sourceMappingURL=renamed.d.ts.map