import { Path } from '../../slate/index.ts'; export type StringDiff = { start: number; end: number; text: string; }; export type TextDiff = { id: number; path: Path; diff: StringDiff; }; export declare function applyStringDiff(text: string, ...diffs: StringDiff[]): string; /** * Remove redundant changes from the diff so that it spans the minimal possible range */ export declare function normalizeStringDiff(targetText: string, diff: StringDiff): StringDiff | null;