@ckeditor/ckeditor5-ai
Version:
AI features for CKEditor 5.
40 lines (39 loc) • 1.08 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
*/
/**
* @module ai/aichat/ui/feed/aichatfeederroritemview
*/
import { AIChatFeedItemView, type AIChatItemViewOptions } from './aichatfeeditemview.js';
/**
* A view for error messages in the chat feed.
*/
export declare class AIChatFeedErrorItemView extends AIChatFeedItemView {
/**
* @inheritDoc
*/
options: AIChatFeedErrorItemViewOptions;
/**
* @inheritDoc
*/
constructor(options: AIChatFeedErrorItemViewOptions);
/**
* @inheritDoc
*/
render(): void;
/**
* Sets the content of the error item.
*/
setContent(content: string): void;
}
export interface AIChatFeedErrorItemViewOptions extends AIChatItemViewOptions {
/**
* The static error message to be displayed immediately while rendering the view.
*/
initialContent: string;
/**
* The level of the error.
*/
level?: 'warning' | 'error';
}