/** * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options */ import { type Editor } from "@ckeditor/ckeditor5-core"; import { type DocumentChange } from "./proposedchange.js"; import { type DocumentCompareComputeChangesOptions } from "./documentcompare.js"; import { type DocumentCompareSnapshot } from "./documentsnapshot.js"; /** * Computes the differences between a snapshot and processed data, and returns them as an array of non-overlapping changes. Every change * can be then rendered and decided about separately. * * A change says where it sits on either side as a range into the tree it was read from - the snapshot for the before side, the processed * data for the after side - so both trees are kept alive by the changes found in them, and a change can still be read in the surroundings * it was found in. * * Implements {@link module:ai/toolkit/documentcompare~DocumentCompare#computeChanges}. */ export declare function computeChanges(editor: Editor, snapshot: DocumentCompareSnapshot, data: string | Record, options?: DocumentCompareComputeChangesOptions): Array;