/** * Deterministic chunking. Prefers symbol boundaries, then markdown/config * sections, then bounded line windows. Chunk identity is content-addressed. */ import type { ExtractedSymbol } from "./symbols.js"; export interface ChunkInput { fileId: string; content: string; contentSha256: string; languageId?: string; classification: string; symbols?: ExtractedSymbol[]; } export interface ChunkOutput { chunkId: string; fileId: string; contentSha256: string; startLine: number; endLine: number; startByte?: number; endByte?: number; languageId?: string; symbolId?: string; chunkKind: "symbol" | "section" | "paragraph" | "configuration" | "fallback_window"; textHash: string; embeddingStatus: "not_requested" | "pending" | "ready" | "failed" | "excluded"; text: string; } export declare const MAX_CHUNK_LINES = 160; export declare const MAX_CHUNK_CHARS = 6000; export declare function chunkFile(input: ChunkInput): ChunkOutput[]; //# sourceMappingURL=chunk.d.ts.map