/** * @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/aireviewcore/utils/reviewcontentpart */ import { type AISuggestionContentPartTranslationKeys } from "../../aicore/utils/contentparttranslationkeys.js"; import { type AISuggestionContentPartDefinition } from "../../aicore/utils/getsuggestionpartsfromreply.js"; import { type AIReviewCheckResultChange } from "../model/aireviewcheckresultchange.js"; /** * AI Review's wording for the shared suggestion content part. The chat feed says "Change 1 / Apply change / * Reject change"; review says "Review 1 / Accept / Dismiss". */ export declare const AI_REVIEW_CONTENT_PART_TRANSLATION_KEYS: AISuggestionContentPartTranslationKeys; /** * Describes a review change as a suggestion content part, so the panel can render it with the same view the chat * feed uses. * * The diff arrives from the review pipeline as an HTML string, while the content part renders a parsed document; * parsing here also routes the markup through the part's own sanitization rather than a raw `innerHTML` write. * * @param index The part's index, assigned by the caller and mapped back to `AIReviewCheckResultChange#id`. */ export declare function createReviewContentPartDefinition(change: AIReviewCheckResultChange, index: number): AISuggestionContentPartDefinition;