/** * Chunking coordinator for the semantic search subsystem. * * Dispatches to the tree-sitter AST chunker for code files and the * text chunker for non-code files (markdown, YAML, JSON, etc.). */ import type { Chunk, FileType } from "./types.js"; /** * Chunk a file's content into semantically meaningful pieces. * * For code files, uses tree-sitter to parse the AST and extract functions, * classes, methods, etc. For text files, uses format-specific splitting rules. * * If tree-sitter parsing fails for a code file, falls back to plaintext chunking. * * @param content - Raw file content * @param filePath - Relative file path (stored in chunk metadata) * @param fileType - Detected file type */ export declare function chunkFile(content: string, filePath: string, fileType: FileType): Promise; //# sourceMappingURL=chunker.d.ts.map