/** * @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/getsuggestionpartsfromreply */ import { type Editor } from "@ckeditor/ckeditor5-core"; import { Document } from "./htmlparser.js"; import { type AIReplyChangeGroup, type AIReplyChangeGroupState, type AIReplyChangeGroupOutdatedReason } from "../model/aireply.js"; export declare function getSuggestionPartsFromReply({ changeGroups, documentContextContent, showDiff, trimUnchanged }: { showDiff: boolean; changeGroups: Array; documentContextContent: Map; trimUnchanged?: boolean; }): Array; export declare function passThroughEditorDataPipeline(editor: Editor, before: Document, after: Document, showDiff: boolean, trimUnchanged?: boolean): { content: Document; hasChanges: boolean; }; export type AISuggestionContentPartDefinition = { type: "modified" | "new" | "removed" | "context"; index: number; state: AIReplyChangeGroupState; outdatedReason?: AIReplyChangeGroupOutdatedReason; content: Document; hasChanges: boolean; wrapperTag?: string; };