type DiffOpType = 'equal' | 'insert' | 'delete'; interface LineDiffRow { type: DiffOpType | 'replace'; oldIndex: number | null; newIndex: number | null; oldText: string; newText: string; } declare const diffLines: (oldText: string, newText: string) => LineDiffRow[]; interface WordDiffSeg { type: DiffOpType; text: string; } declare const diffWords: (oldText: string, newText: string) => { oldSegs: WordDiffSeg[]; newSegs: WordDiffSeg[]; }; declare const pairReplacements: (rows: LineDiffRow[]) => LineDiffRow[]; export { diffLines, diffWords, pairReplacements }; export type { LineDiffRow, WordDiffSeg, DiffOpType };