/** * Resolve a tool-level `symbol` input (either a full ID or a plain * name) to a canonical SymbolId, returning enough context for the * caller to disambiguate if necessary. * * Resolution rules: * - Input starts with `sym:` → treated as an ID. Single lookup in * storage; not-found if absent. * - Otherwise treated as a name. Storage lookup by name, filtered by * `fileHint` if supplied (prefix-match first, substring-fallback * per user decision — substring-only has false-positive risk). * - Zero matches after filtering → `not_found`. * - One match → `resolved`. * - Multiple matches → `disambiguation`, returning all candidates. */ import type { DatabaseInstance } from "../storage/db.js"; import type { Symbol as AtlasSymbol } from "../types.js"; export type ResolveResult = { kind: "resolved"; symbol: AtlasSymbol; } | { kind: "disambiguation"; candidates: AtlasSymbol[]; } | { kind: "not_found"; input: string; }; export interface ResolveOptions { fileHint?: string; } export declare function resolveSymbol(db: DatabaseInstance, input: string, options?: ResolveOptions): ResolveResult; //# sourceMappingURL=symbol-resolver.d.ts.map