import type { RagChunk } from '../../types/sparkContracts';
export interface SourceChunk {
    text: string;
    startLine: number;
    endLine: number;
    symbol?: string;
}
export interface OffsetChunk {
    text: string;
    offset: number;
}
export declare function estimateTokenCount(text: string): number;
export declare function stableChunkId(parts: readonly unknown[], length?: number): string;
export declare function languageForPath(relativePath: string): NonNullable<RagChunk['language']>;
export declare function detectSourceSymbol(line: string): string | undefined;
export declare function chunkSourceBySymbols(content: string, maxChars: number): SourceChunk[];
export declare function chunkTextByParagraphs(text: string, maxChars: number): OffsetChunk[];
//# sourceMappingURL=baseIngester.d.ts.map