/** * AST-Based Code Chunking using Synth * * Splits code at semantic boundaries (functions, classes, etc.) * Supports multiple languages via language-config registry. */ /** * AST-based chunking options */ export interface ASTChunkOptions { readonly maxChunkSize?: number; readonly minChunkSize?: number; readonly preserveContext?: boolean; readonly nodeTypes?: string[]; /** Enable recursive parsing of embedded code (e.g., code blocks in markdown) */ readonly parseEmbedded?: boolean; } /** * Chunk result with metadata */ export interface ChunkResult { readonly content: string; readonly type: string; readonly startLine: number; readonly endLine: number; readonly metadata: Record; } /** * Chunk code using AST analysis * * @example * ```typescript * const chunks = await chunkCodeByAST( * code, * 'example.ts', * { maxChunkSize: 1000, preserveContext: true } * ); * ``` */ export declare function chunkCodeByAST(code: string, filePath: string, options?: ASTChunkOptions): Promise; /** * Simple wrapper for backward compatibility */ export declare function chunkCodeByASTSimple(code: string, filePath: string, options?: ASTChunkOptions): Promise; /** * Get list of supported languages */ export declare function getSupportedLanguages(): string[]; //# sourceMappingURL=ast-chunking.d.ts.map