@hpbyte/h-codex-core
Version:
Core indexing and search functionality for h-codex
22 lines (21 loc) • 683 B
TypeScript
import type { ChunkParams } from '../../types';
export declare class RecursiveChunker {
chunk({ filePath, projectId }: Omit<ChunkParams, 'language'>): Promise<{
projectId: string;
content: string;
filePath: string;
startLine: number;
endLine: number;
nodeType: string;
hash: string;
size: number;
id?: string | undefined;
createdAt?: Date | null | undefined;
updatedAt?: Date | null | undefined;
language?: string | null | undefined;
}[]>;
private splitRecursive;
private processChunks;
private getLanguage;
}
export declare const recursiveChunker: RecursiveChunker;