import { type ToolDefinition } from "@earendil-works/pi-coding-agent"; import { type CodeGraph } from "./build.js"; import { buildLiteralIndex } from "./literals.js"; import { buildDisclosureGraph, type Direction } from "./disclose.js"; export type CodemapOperation = "skeleton" | "search" | "expand" | "cascade" | "source"; export interface CodemapOpArgs { query?: string; entities?: readonly string[]; direction?: Direction; depth?: number; maxTokens?: number; seed?: string; } export interface CodemapOpResult { operation: CodemapOperation; text: string; tokens: number; entities: string[]; truncated: boolean; } export interface CodeGraphBundle { graph: CodeGraph; disclosure: ReturnType; literals: ReturnType; } export declare const getCodeGraph: (root: string) => CodeGraphBundle; export declare const codemapOperation: (operation: CodemapOperation, args: CodemapOpArgs, root: string) => CodemapOpResult; export interface CodemapToolDeps { root?: string; } export declare const createCodemapTool: (deps?: CodemapToolDeps) => ToolDefinition; //# sourceMappingURL=tool.d.ts.map