import type { CodebaseInterface, DefinitionResult, DependencyResult, ExploreResult, FileContent, ImpactResult, ReferenceResult, SearchResult, SymbolResult } from './contracts.js'; export interface CodeGraphAdapterOptions { /** Repository to index. codegraph refuses to read files outside it. */ root: string; /** Per-tool-call timeout; the first call on a large repository includes a cold index build. */ toolTimeoutMs?: number; } /** * CodebaseInterface backed by the codegraph MCP server * (`@lzehrung/codegraph`, run as `codegraph mcp serve --stdio`). * * Symbol arguments accept a plain name (`formatMoney`), a qualified path * (`src/core/domain.ts::formatMoney`) or a codegraph handle (`symbol:...`). * A plain name that is declared in several places is answered for every declaration. */ export declare class CodeGraphAdapter implements CodebaseInterface { private root; private codegraph; constructor(options: CodeGraphAdapterOptions); /** Stops the codegraph server process. */ close(): Promise; search(query: string): Promise; readFile(path: string): Promise; readRange(path: string, startLine: number, endLine: number): Promise; findSymbol(name: string): Promise; findReferences(symbol: string): Promise; getDefinition(symbol: string): Promise; getCallers(symbol: string): Promise; getCallees(symbol: string): Promise; getDependencies(path: string): Promise; getReverseDependencies(path: string): Promise; getImpact(symbol: string): Promise; explore(query: string): Promise; private calls; /** Resolves a name, `file::name` path or codegraph handle to the declarations it refers to. */ private resolveSymbols; /** Reads lines through codegraph's paginated get_file, which confines reads to the project root. */ private readLines; private toProjectPath; } //# sourceMappingURL=codegraph-adapter.d.ts.map