/** * @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/model/aireviewcheckresultchange */ import { type ObservableMixinConstructor } from "@ckeditor/ckeditor5-utils"; import { type Editor } from "@ckeditor/ckeditor5-core"; import { type Operation } from "@ckeditor/ckeditor5-engine"; import { type AIReviewCheckResult } from "./aireviewcheckresult.js"; import { type AIReviewCoreChangeData } from "../aireviewcoreediting.js"; declare const AIReviewCheckResultChangeBase: ObservableMixinConstructor; /** * Represents a single change of the document that is a result of an review check run. */ export declare class AIReviewCheckResultChange extends AIReviewCheckResultChangeBase { /** * The id of the change. */ readonly id: string; /** * Parent result of the change. * * Each change belongs to a single result, while each result can have multiple changes. * This is because the AI API returns multiple changes in a single result and the plugin * splits them into separate changes. */ readonly parent: AIReviewCheckResult; /** * The editor this change targets (where accepting it writes). Used to gate accepting the change by that * editor's read-only state. */ readonly editor: Editor; /** * The status of the change. * * @observable */ status: "pending" | "accepted" | "rejected" | "outdated"; /** * Indicates whether the change is currently activated. * * @observable */ isActivated: boolean; /** * Indicates whether the change has been rated. * * @observable */ isRated: boolean; /** * Creates a new instance of the AIReviewCheckResult. */ constructor(id: string, data: AIReviewCoreChangeData, parent: AIReviewCheckResult, editor: Editor); get contentDiffed(): string; /** * Semantic element the preview should render this change's content under (an inline root's own element, for example * `h2`), or `undefined` for a block root, where the default `div` host is used. */ get wrapperTag(): string | undefined; get operations(): ReadonlyArray; get operationsIsolated(): ReadonlyArray; } export {};