export interface CodegraphClientOptions { /** Repository the server indexes. codegraph refuses reads outside it. */ root: string; /** Per-tool-call timeout. The first call on a large repo may include a cold index build. */ toolTimeoutMs?: number; } export declare class CodegraphToolError extends Error { readonly tool: string; constructor(tool: string, message: string); } /** * Owns one `codegraph mcp serve --stdio` subprocess for a repository and exposes its tools. * The server keeps the index warm between calls, so reuse one client per repository. */ export declare class CodegraphClient { private options; private client; private transport; private connecting; private stderrTail; private active; private waiting; constructor(options: CodegraphClientOptions); callTool(name: string, args?: Record): Promise; close(): Promise; private acquireSlot; private releaseSlot; private connect; private start; private describeStderr; } //# sourceMappingURL=codegraph-client.d.ts.map