import { Chunker } from './core/chunker'; import { Chunk, ChunkingOptions, ChunkingResult, CodeExtractionResult, FileRangeRequest } from './types'; /** * Main Chunkyyy class - high-level API */ export declare class Chunkyyy { chunker: Chunker; private cache; constructor(options?: ChunkingOptions); /** * Chunk a single file */ chunkFile(filePath: string): Promise; /** * Chunk code from a string */ chunkCode(code: string, filePath: string): Chunk[]; /** * Chunk a directory */ chunkDirectory(dirPath: string, options?: { recursive?: boolean; }): Promise; /** * Clear cache for a file or all files */ clearCache(filePath?: string): void; /** * Get file hash for change detection */ private getFileHash; /** * Extract code chunks with dependencies for specified file ranges * Returns complete functions, variables, and all their dependencies * * @example * ```typescript * const result = await chunkyyy.extractCodeWithDependencies([ * { * filePath: 'src/utils.ts', * ranges: [{ start: 10, end: 25 }, { start: 30, end: 45 }] * }, * { * filePath: 'src/api.ts', * ranges: [{ start: 5, end: 20 }] * } * ]); * * // Get code blocks by file * result.codeBlocks.get('src/utils.ts'); // Complete code with dependencies * ``` */ extractCodeWithDependencies(requests: FileRangeRequest[]): Promise; } //# sourceMappingURL=chunkyyy.d.ts.map