/** * @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/aicore/ui/suggestioncontainer/aisuggestionstreamablecontentview */ import { View } from '@ckeditor/ckeditor5-ui'; import { type Locale } from '@ckeditor/ckeditor5-utils'; import { type AISuggestionContentPartDefinition } from '../../utils/getsuggestionpartsfromreply.js'; import '../../../../theme/common/aisuggestionstreamablecontent.css'; /** * A container that is able to stream its own content (see {@link #update}). */ export declare class AISuggestionStreamableContentView extends View { constructor(locale: Locale); /** * Updates the content of the streamable content view. * * Depending on the used rendering strategy, the content will be streamed or updated using innerHTML. */ update({ part, renderingStrategy, abortSignal }: { part: AISuggestionContentPartDefinition; renderingStrategy: AIContentRenderingStrategy; abortSignal?: AbortSignal; }): Promise; /** * Clears the content of the streamable content view. */ clear(): void; } export type AIContentRenderingStrategy = 'streaming' | 'static';