import type { ChunkOptions } from "./types.js"; /** * Splits text into overlapping chunks for embedding. * * Uses a recursive character splitting strategy: tries each separator in * order (paragraphs → lines → words → characters) to produce semantically * coherent chunks within the size limit. * * Default chunk size is 2000 characters (~512 tokens), aligned with * common embedding model context limits (e.g. OpenAI's 8191-token max). * * @example * ```ts * const chunks = await chunk("long document...", { maxChars: 2000, overlap: 200 }); * ``` */ export declare function chunk(text: string, options?: ChunkOptions): Promise; //# sourceMappingURL=chunk.d.ts.map