@ckeditor/ckeditor5-ai
Version:
AI features for CKEditor 5.
33 lines (32 loc) • 1.13 kB
TypeScript
/**
* @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/aiballoonview
*/
import { View } from '@ckeditor/ckeditor5-ui';
import { type Locale } from '@ckeditor/ckeditor5-utils';
export declare const AI_BALLOON_VIEW_EVENT_NAMES: readonly ["applySuggestion", "insertSuggestion", "showNext", "showPrevious"];
/**
* The base class for all balloon views used by the `AIBalloon` plugin.
*/
export declare abstract class AIBalloonView extends View {
/**
* @inheritDoc
*/
constructor(locale: Locale);
/**
* Shows a blocking error message and disables toolbar buttons.
* This should be used for terminal errors where the interaction cannot continue (e.g., selection removed).
*
* @param message The error message to display
*/
showBlockingError(message: string): void;
/**
* Shows an error message in the balloon.
*
* @param message The error message to display
*/
showError(message: string): void;
}