/** * Shared utilities for code chunking. */ /** * Base interface for code chunks. * Both ASTChunk and TreeSitterChunk share this structure. */ export interface BaseChunk { content: string; startLine: number; endLine: number; type: 'function' | 'class' | 'method' | 'interface' | 'type' | 'variable' | 'import' | 'other'; name?: string; } /** * Split a large chunk into smaller pieces. * * @param chunk - The chunk to split * @param maxLines - Maximum lines per chunk * @param minLines - Minimum lines for a chunk (avoid tiny fragments) * @returns Array of smaller chunks */ export declare function splitLargeChunk(chunk: T, maxLines: number, minLines: number): T[]; //# sourceMappingURL=chunk-utils.d.ts.map