import { DEFAULT_CHUNKING_CONFIG } from '../constants/rag/index.js'; import type { ChunkContent, Chunker, ChunkingConfig } from '../types/rag/index.js'; export declare class TextChunker implements Chunker { chunk(content: string, config: ChunkingConfig): ChunkContent[]; private fixedChunk; private sentenceChunk; private paragraphChunk; private recursiveChunk; private recursiveSplit; private splitBySeparators; private mergeSmallParts; } export { DEFAULT_CHUNKING_CONFIG }; /** * Split on `sep` but keep each separator attached to the piece it ended. * * `String.prototype.split` discards the separator, which silently rewrites * the text: a document split on '. ' comes back with its sentence-ending * periods gone, and one split on '\n\n' loses every paragraph break. For a * retrieval chunk that is a correctness problem, not a cosmetic one — the * chunk shown to the model is no longer what the source said. * * Concatenating the result reproduces the input exactly. */ export declare function splitKeepingSeparator(text: string, sep: string): string[]; //# sourceMappingURL=chunking.d.ts.map