/** * @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/aiballoon/ui/aiballoontoolbarview */ import type { Locale } from "@ckeditor/ckeditor5-utils"; import { ToolbarView, ButtonView } from "@ckeditor/ckeditor5-ui"; /** * A class representing the toolbar view of the AI balloon. */ export declare class AIBalloonToolbarView extends ToolbarView { /** * Observable property that indicates whether the toolbar is visible or not. */ isVisible: boolean; /** * Button that is used to reject the suggestion. */ rejectButton?: ButtonView; /** * Button that is used to insert the suggestion. */ suggestButton?: ButtonView; /** * Button that is used to apply the suggestion. */ applyButton?: ButtonView; /** * Observable property that indicates whether the toolbar buttons are enabled or not. */ isEnabled: boolean; /** * Whether the target editor is read-only. Disables the write actions (apply, suggest), but not reject. * * @observable */ isTargetReadOnly: boolean; /** * @inheritDoc */ constructor(locale: Locale, showApplyButton?: boolean, showSuggestButton?: boolean); /** * The button representing the primary (default) action of the toolbar. It is the apply button, or the suggest button * when applying is not available, or the reject button when neither of them is. */ get primaryActionButton(): ButtonView; /** * Toggles the visibility of the apply and suggest buttons. */ setButtonsVisibility({ showApplyButton, showSuggestButton }: { showApplyButton: boolean; showSuggestButton: boolean; }): void; }