/** * AST-based chunking using tree-sitter. * * Breaks content at real declaration boundaries (function, class, interface…) * rather than at accidental blank lines. Falls back to blank-line chunking * when the language is unsupported or parsing fails. * * Each chunk after the first is prefixed with the file's import/header block * so the LLM always has module-level context. */ /** * Original blank-line chunking, kept as fallback for unsupported languages. */ export declare function blankLineChunk(content: string, maxChars: number, overlapLines?: number): string[]; /** * Chunk `content` at real AST declaration boundaries using tree-sitter. * * Falls back to blank-line chunking if the language is unsupported or parsing * fails. Each chunk after the first is prefixed with the file's imports block * so the LLM always has module-level context (e.g. class declaration visible * when processing a method that was split into a later chunk). */ export declare function astChunkContent(content: string, filePath: string, maxChars: number, overlapLines?: number): Promise; //# sourceMappingURL=ast-chunker.d.ts.map