UNPKG

@ckeditor/ckeditor5-ai

Version:

AI features for CKEditor 5.

41 lines (40 loc) 1.37 kB
/** * @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/aichatfeedusermessageitem */ import { AIChatFeedItemView, type AIChatItemViewOptions } from './aichatfeeditemview.js'; import { type AIContextItem } from '../../../aicore/model/aicontext.js'; import { type Locale } from 'ckeditor5/src/utils.js'; import { type BodyCollection } from 'ckeditor5/src/ui.js'; /** * A view for a user message item in the AI chat feed. * * It displays the content of the message without streaming. */ export declare class AIChatFeedUserMessageItemView extends AIChatFeedItemView<AIChatFeedUserMessageItemViewOptions> { /** * @inheritDoc */ options: AIChatFeedUserMessageItemViewOptions; /** * @inheritDoc */ constructor(locale: Locale, options: AIChatFeedUserMessageItemViewOptions, bodyCollection: BodyCollection); /** * @inheritDoc */ render(): void; } export interface AIChatFeedUserMessageItemViewOptions extends AIChatItemViewOptions { /** * The static user message to be displayed immediately while rendering the view. */ initialContent: string; /** * The context items to be displayed. */ contextItems: Array<AIContextItem>; }