import { MorphSegment } from './types'; export interface DiffResult { segments: MorphSegment[]; splits: Map; } export interface DiffOptions { /** Numeric words morph by place value. Off falls back to character LCS. */ numbers?: boolean; /** Caret position, honoured only when the value holds a single number. */ cursorIndex?: number; } export declare function diffSegments(oldSegments: MorphSegment[], newText: string, locale: string, options?: DiffOptions): DiffResult;