/**
 * Word-level diff for granular text replacements.
 *
 * Produces multiple fine-grained change operations instead of one large
 * replacement, so that tracked changes show individual word edits.
 */
export type WordDiffOp = {
    type: 'replace';
    oldFrom: number;
    oldTo: number;
    newText: string;
} | {
    type: 'delete';
    oldFrom: number;
    oldTo: number;
} | {
    type: 'insert';
    insertAt: number;
    newText: string;
};
/**
 * Computes word-level diff and returns only the non-equal (change) operations.
 * Character offsets are relative to the input strings.
 */
export declare function getWordChanges(oldText: string, newText: string): WordDiffOp[];
//# sourceMappingURL=word-diff.d.ts.map