@ckeditor/ckeditor5-ai
Version:
AI features for CKEditor 5.
41 lines (40 loc) • 1.49 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/aichatview
*/
import { type Locale } from 'ckeditor5/src/utils.js';
import { type FormHeaderView, View } from 'ckeditor5/src/ui.js';
import { AIChatFeedView } from './aichatfeedview.js';
import { AIChatControlsView } from './aichatcontrolsview.js';
import { AIDisclaimerView } from '../../aicore/ui/aidisclaimerview.js';
import { type AIContextProvider, type AIContextResourceState } from '../../aichat/model/aichatcontext.js';
/**
* The main view of the AI chat plugin.
*
* It contains the header, feed and controls views.
*/
export declare class AIChatView extends View {
chatHeader: FormHeaderView;
chatFeed: AIChatFeedView;
chatControls: AIChatControlsView;
chatDisclaimer: AIDisclaimerView;
constructor(locale: Locale, options: {
showResizeButton: boolean;
contextResourcesSearchInputVisibleFrom?: number;
});
/**
* Populates a source resource balloon with loaded resources.
*/
populateSourceResourceBalloon(sourceId: string, source: AIContextProvider, resources: Array<AIContextResourceState>, uid: string): void;
/**
* Closes the source resource balloon and cleans up its state.
*/
closeSourceResourceBalloon(sourceId: string): void;
/**
* @inheritDoc
*/
destroy(): void;
}