import type { GitClient } from "../ports/git.js"; import type { PathOps } from "../ports/paths.js"; import type { WarpContext } from "./context.js"; import { type SemanticEnrichmentProvider, type SemanticEnrichmentSummary } from "../ports/semantic-enrichment.js"; export declare const DEFAULT_INDEX_MAX_FILES_PER_CALL = 64; export declare const DEFAULT_INDEX_MAX_PATCH_JSON_BYTES: number; export interface IndexHeadOptions { readonly cwd: string; readonly git: GitClient; readonly pathOps: PathOps; readonly ctx: WarpContext; readonly paths?: readonly string[] | undefined; readonly maxFilesPerCall?: number | undefined; readonly maxPatchJsonBytes?: number | undefined; readonly semanticProvider?: SemanticEnrichmentProvider | undefined; readonly semanticFactLimit?: number | undefined; } export interface IndexHeadResult { readonly ok: true; readonly filesIndexed: number; readonly nodesEmitted: number; readonly semanticEnrichment: SemanticEnrichmentSummary; } /** * Index the current HEAD by writing one bounded patch per file. * * Full tree-sitter syntax is attached as file-node blob content. The graph * itself only stores compact query facts: files, symbols, import/reference * anchors, directories, and commit-to-symbol touch edges. * * Emits a `commit:{sha}` node with edges to sym nodes labelled * "adds", "changes", or "removes" so structural queries can detect * what changed between ticks. */ export declare function indexHead(opts: IndexHeadOptions): Promise; //# sourceMappingURL=index-head.d.ts.map