import { TextChunkConfig, TextChunkTransformer, TextChunkTransformerParams } from "./textChunkTransformer"; export interface SeparatorTextChunkConfig extends TextChunkConfig { separator?: string; stripNewlines?: boolean; } export type SeparatorTextChunkerParams = TextChunkTransformerParams & SeparatorTextChunkConfig; /** * Chunk text by a specified separator. The default separator is "\n", which * will chunk simple text into words. */ export declare class SeparatorTextChunker extends TextChunkTransformer { separator: string; stripNewlines: boolean; constructor(params?: SeparatorTextChunkerParams); chunkText(text: string): Promise; }