@ckeditor/ckeditor5-ai
Version:
AI features for CKEditor 5.
43 lines (42 loc) • 1.51 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 { type Locale } from 'ckeditor5/src/utils.js';
import { View, ButtonView } from 'ckeditor5/src/ui.js';
import { type AIChatHistoryCategoryData } from '../aichathistoryui.js';
export declare class AIChatHistoryView extends View {
/**
* The button to resize the chat view.
*/
readonly resizeButton?: ButtonView;
/**
* Indicates whether the tabs view is maximized.
*
* @observable
*/
isMaximized: boolean;
hasItems: boolean;
isLoading: boolean;
errorMessage: string;
isSearchViewVisible: boolean;
isEmptyViewVisible: boolean;
isMainErrorViewVisible: boolean;
constructor(locale: Locale, showResizeButton: boolean);
/**
* Updates the chat history list with pre-categorized items from the model.
*/
updateHistoryItemsWithCategories(categories: Array<AIChatHistoryCategoryData>): void;
/**
* Removes a conversation item from the history list by its ID.
*/
removeHistoryItem(id: string): void;
/**
* Updates the title of a specific history item in the UI.
*/
updateItemTitle(itemId: string, title: string): void;
/**
* Updates the loading state of a specific history item in the UI.
*/
updateItemLoadingState(itemId: string, operation: string | null, isLoading: boolean): void;
}