/** * @license Copyright (c) 2003-2026, 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/aichatfeedreplyitemview */ import { type Locale } from '@ckeditor/ckeditor5-utils'; import { AIChatFeedItemView, type AIChatItemViewOptions } from './aichatfeeditemview.js'; import { type Document } from '../../../aicore/utils/htmlparser.js'; import { type BodyCollection } from '@ckeditor/ckeditor5-ui'; import { type AIContentRenderingStrategy } from '../../../aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview.js'; import { type AISource } from '../../../aicore/aiconnector.js'; /** * A view for an AI reply item in the AI chat feed. * * The reply can be either a static message (marked as done immediately) or a content that gets updated over time. * * The content of the reply is always streamed into its reply container. */ export declare class AIChatFeedReplyItemView extends AIChatFeedItemView { /** * @inheritDoc */ constructor(locale: Locale, options: AIChatFeedReplyItemViewOptions, bodyCollection: BodyCollection); /** * @inheritDoc */ render(): Promise; /** * @inheritDoc */ updateContent({ parsedContent, renderingStrategy, abortSignal }: { parsedContent: Document; renderingStrategy: AIContentRenderingStrategy; abortSignal?: AbortSignal; }): Promise; updateSources(sources: Array): void; } /** * Options for the {@link AIChatFeedReplyItemView} class. */ export interface AIChatFeedReplyItemViewOptions extends AIChatItemViewOptions { /** * The initial message to be streamed immediately while rendering the view. */ initialContent?: string; }