/** * @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/ui/suggestioncontainer/aisuggestioncontentparttoolbarview */ import { ToolbarView } from "@ckeditor/ckeditor5-ui"; import { type Locale } from "@ckeditor/ckeditor5-utils"; import { type AISuggestionActionName } from "../../utils/replyactions.js"; import { type AISuggestionContentPartTranslationKeys } from "../../utils/contentparttranslationkeys.js"; /** * A toolbar view with actions for a specific suggestion: delete, insert, apply. */ export declare class AISuggestionContentPartToolbarView extends ToolbarView { isEnabled: boolean; isVisible: boolean; /** * Observable property that indicates whether the track changes feature is on. */ isTrackChangesOn: boolean; /** * Whether the target editor is read-only. Disables the write actions (apply, suggest), but not reject. * * @observable */ isTargetReadOnly: boolean; /** * Whether the apply action may be offered at all. Combined with `isTrackChangesOn`, which hides apply * on its own. Surfaces that decide per suggestion (AI Review gates on each change's own editor) set this; * the chat feed leaves it `true` and relies on `isTrackChangesOn` alone. * * @observable */ isApplyVisible: boolean; /** * Whether the suggest action may be offered at all. Set by surfaces that decide per suggestion; left `true` * by the chat feed, where the presence of the action is already decided by `availableActions`. * * @observable */ isSuggestVisible: boolean; constructor(locale: Locale, availableActions: Array, areActionsDisabled?: boolean, translationKeys?: AISuggestionContentPartTranslationKeys); /** * Toggles the visibility of the apply and suggest buttons. */ setButtonsVisibility({ showApplyButton, showSuggestButton }: { showApplyButton: boolean; showSuggestButton: boolean; }): void; }