import { WordSequence } from './WordSequence.js'; export declare function segmentText(text: string, options?: SegmentationOptions): Promise; export declare function segmentWordSequence(wordSequence: WordSequence, options?: WordSequenceSegmentationOptions): Promise; export declare function splitToWords(text: string, options?: SegmentationOptions): Promise; export declare function addMissingPunctuationWordsToWordSequence(wordSequence: WordSequence, sourceText: string): { wordSequenceWithPunctuation: WordSequence; originalWordsReverseMapping: Map; }; export interface SegmentationResult { words: WordSequence; sentences: Sentence[]; segmentSentenceRanges: Range[]; } export declare class TextFragment { wordRange: Range; words: WordSequence; constructor(wordRange: Range, words: WordSequence); get text(): string; get charRange(): Range; } export declare class Sentence extends TextFragment { phrases: Phrase[]; } export declare class Phrase extends TextFragment { } export interface Range { start: number; end: number; } export interface SegmentationOptions { language?: string; customSuppressions?: string[]; enableEastAsianPostprocessing?: boolean; } export declare const defaultSegmentationOptions: SegmentationOptions; export interface WordSequenceSegmentationOptions { requireSpaceAfterColonsOrSemicolons: boolean; } export declare const defaultWordSequenceSegmentationOptions: WordSequenceSegmentationOptions; //# sourceMappingURL=TextSegmentation.d.ts.map