@ckeditor/ckeditor5-ai
Version:
AI features for CKEditor 5.
21 lines (20 loc) • 848 B
TypeScript
/**
* @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
*/
import { type Editor } from 'ckeditor5/src/core.js';
import { Document } from './htmlparser.js';
import { type AIReplyChangeGroup } from '../model/aireply.js';
export declare function getSuggestionPartsFromReply({ editor, changeGroups, documentContextContent, showDiff, trimUnchanged }: {
editor: Editor;
showDiff: boolean;
changeGroups: Array<AIReplyChangeGroup>;
documentContextContent: Document;
trimUnchanged?: boolean;
}): Array<AISuggestionContentPartDefinition>;
export type AISuggestionContentPartDefinition = {
type: 'modified' | 'new' | 'removed' | 'context';
index: number;
content: Document;
hasChanges: boolean;
};