@ckeditor/ckeditor5-ai
Version:
AI features for CKEditor 5.
45 lines (44 loc) • 1.24 kB
TypeScript
/**
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
*/
import { ButtonView, type TextareaView, AutocompleteView } from 'ckeditor5/src/ui.js';
import { type Locale } from 'ckeditor5/src/utils.js';
export declare class AIChatPromptInputView extends AutocompleteView<TextareaView> {
/**
* The submit button view.
*/
submitButtonView: ButtonView;
/**
* Flag indicating if the upload is in progress.
*
* @observable
*/
isUploadInProgress: boolean;
/**
* Flag indicating if the input is empty.
* @observable
*/
isEmpty: boolean;
constructor(locale: Locale, addContextButtonView: ButtonView);
/**
* @inheritDoc
*/
render(): void;
/**
* @inheritDoc
*/
destroy(): void;
/**
* Sets the placeholder text for the input.
*/
setPlaceholderText(placeholder: string): void;
/**
* Sets the upload in progress state.
*/
setIsUploadInProgress(isUploadInProgress: boolean): void;
}
export type AIChatSendUserMessageEvent = {
name: 'sendUserMessage';
args: [query: string];
};