@ckeditor/ckeditor5-ai
Version:
AI features for CKEditor 5.
32 lines (31 loc) • 1.09 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 { ListItemView } from 'ckeditor5/src/ui.js';
import type { AIChatHistoryListItemView } from './aichathistorylistitemview.js';
export interface AIChatHistoryListViewConfig {
title: string;
items: Array<AIChatHistoryListItemView>;
}
export declare class AIChatHistoryListView extends ListItemView {
title: string;
itemsViews: Array<AIChatHistoryListItemView>;
isVisible: boolean;
constructor(locale: any, { title, items }: AIChatHistoryListViewConfig);
/**
* Filters the list items based on the given regular expression.
*/
filter(regExp: RegExp | null): {
resultsCount: number;
totalItemsCount: number;
};
/**
* Gets an item from the list by its ID.
*/
getItem(id: string): AIChatHistoryListItemView | undefined;
/**
* Removes an item from the list.
*/
removeItem(item: AIChatHistoryListItemView): void;
}