UNPKG

@ckeditor/ckeditor5-ai

Version:

AI features for CKEditor 5.

23 lines (22 loc) 1.09 kB
/** * @license Copyright (c) 2003-2025, 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/getoperationsfromreply */ import { type DocumentCompare, type DocumentCompareOptions } from 'ckeditor5-collaboration/src/collaboration-core.js'; import { type Operation } from 'ckeditor5/src/engine.js'; import { type AIInteraction } from '../model/aiinteraction.js'; import type { AIReply, AIReplyChangeGroup } from '../model/aireply.js'; import { type Editor } from 'ckeditor5/src/core.js'; export declare function getOperationsFromReply({ editor, interaction, reply, groups, transform, documentCompare, documentCompareOptions }: { editor: Editor; interaction: AIInteraction; reply: AIReply; transform: boolean; groups: Array<AIReplyChangeGroup>; documentCompare: DocumentCompare; documentCompareOptions: DocumentCompareOptions; }): Array<Operation>; export declare function fixMarkerOperationOldRange(editor: Editor, operation: Operation): void;