/** * @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 */ /** * @module ai/aicore/utils/markoperationsasai */ import type { Operation } from "@ckeditor/ckeditor5-engine"; import type { AIOperationSource } from "@ckeditor/ckeditor5-collaboration-core"; export type { AIOperationSource }; /** * Sets the AI source identifier on a list of operations. After this call, every non-no-op operation has its * `_aiSource` field set to `source` and is preserved through collaborative transmission. * * No-op operations are skipped on purpose — they describe no change, so labelling them would tag transformed * AI work that ended up empty (for example, when a concurrent user edit cancelled out the AI change). * * Use this helper when an AI feature produces operations and you want downstream consumers (notably track-changes * suggestion creation) to recognize them as AI-originated. */ export declare function markOperationsAsAI(operations: Iterable, source: AIOperationSource): void;