import { type IMarkdownString } from "../../../../../../base/common/htmlContent.js"; import { Disposable } from "../../../../../../base/common/lifecycle.js"; import { ThemeIcon } from "../../../../../../base/common/themables.js"; import { IMarkdownRenderer } from "../../../../../../platform/markdown/browser/markdownRenderer.js"; import { IInstantiationService } from "../../../../../../platform/instantiation/common/instantiation.js"; import { IProductService } from "../../../../../../platform/product/common/productService.service.js"; import { IChatProgressMessage, IChatTask, IChatTaskSerialized, IChatToolInvocation, IChatToolInvocationSerialized } from "../../../common/chatService/chatService.js"; import { IChatRendererContent, IChatWorkingProgress } from "../../../common/model/chatViewModel.js"; import { ChatTreeItem } from "../../chat.js"; import { IChatWidgetService } from "../../chat.service.js"; import { IChatContentPart, IChatContentPartRenderContext } from "./chatContentParts.js"; import { IChatMarkdownAnchorService } from "./chatMarkdownAnchorService.service.js"; import { IConfigurationService } from "../../../../../../platform/configuration/common/configuration.service.js"; import { IHoverService } from "../../../../../../platform/hover/browser/hover.service.js"; import { ILanguageModelToolsService } from "../../../common/tools/languageModelToolsService.service.js"; export declare class ChatProgressContentPart extends Disposable implements IChatContentPart { private readonly chatContentMarkdownRenderer; private readonly toolInvocation; private readonly instantiationService; private readonly chatMarkdownAnchorService; private readonly configurationService; readonly domNode: HTMLElement; private readonly showSpinner; private readonly isHidden; private readonly persistentProgress; private useShimmer; private readonly renderedMessage; private readonly renderedOrigin; private readonly shimmerAnimations; private readonly _fileWidgetStore; protected currentContent: IMarkdownString; protected progressIconElement: HTMLElement | undefined; private readonly progressId; private readonly progressAction; constructor(progress: IChatProgressMessage | IChatTask | IChatTaskSerialized | { content: IMarkdownString; }, chatContentMarkdownRenderer: IMarkdownRenderer, context: IChatContentPartRenderContext, forceShowSpinner: boolean | undefined, forceShowMessage: boolean | undefined, icon: ThemeIcon | undefined, toolInvocation: IChatToolInvocation | IChatToolInvocationSerialized | undefined, shimmer: boolean | undefined, isWorkingProgress: boolean | undefined, instantiationService: IInstantiationService, chatMarkdownAnchorService: IChatMarkdownAnchorService, configurationService: IConfigurationService); tryUpdateProgress(progress: IChatProgressMessage, followingContent: IChatRendererContent[], element: ChatTreeItem): boolean; private renderToolOrigin; /** Limits partial shimmer to the stable leading text of the progress message. */ private applyShimmer; /** * How many leading characters of the progress message should shimmer. Ask-question rows * shimmer everything before the ` (` summary; streaming rows shimmer only the stable leading * verb so moving parts (line counts, file names) stay still. Non-positive skips partial shimmer. */ private computeShimmerBoundary; private wrapLeadingText; updateMessage(content: IMarkdownString): void; protected setShimmerActive(active: boolean): void; private updateShimmerAnimations; hasSameContent(other: IChatRendererContent, followingContent: IChatRendererContent[], element: ChatTreeItem): boolean; private createApprovalMessage; } export declare class ChatProgressSubPart extends Disposable { readonly domNode: HTMLElement; readonly iconElement: HTMLElement; constructor(messageElement: HTMLElement, icon: ThemeIcon, tooltip: IMarkdownString | string | undefined, hoverService: IHoverService); } /** Keeps labels stable within an activity and gives new phrases a minimum dwell time. */ export declare function pickWorkingLabel(element: ChatTreeItem, configurationService: IConfigurationService, progressStep?: number): string; export declare class ChatWorkingProgressContentPart extends ChatProgressContentPart implements IChatContentPart { private readonly workingConfigurationService; private explicitContent; private isActive; private progressStep; private showDelayedProgressMessage; private showingDelayedProgressMessage; private showingUnresponsiveToolMessage; private responseComplete; private readonly contextElement; private readonly workingLogo; private readonly delayedProgressMessageScheduler; private readonly imageGenerationMessageScheduler; private imageGeneration; private imageGenerationMessageIndex; private readonly backgroundActivity; private readonly backgroundActivityLabel; constructor(workingProgress: IChatWorkingProgress, chatContentMarkdownRenderer: IMarkdownRenderer, context: IChatContentPartRenderContext, instantiationService: IInstantiationService, chatMarkdownAnchorService: IChatMarkdownAnchorService, workingConfigurationService: IConfigurationService, languageModelToolsService: ILanguageModelToolsService, productService: IProductService, chatWidgetService: IChatWidgetService); get workingLabel(): string; /** Returns whether the rendered progress changed. */ updateWorkingContent(content: IMarkdownString | undefined, isActive?: boolean, announce?: IChatWorkingProgress["announce"], progressStep?: number | undefined, showDelayedProgressMessage?: boolean, imageGeneration?: boolean, backgroundActivity?: IChatWorkingProgress["backgroundActivity"]): boolean; private updateActiveState; private resolveWorkingContent; private updateDelayedProgressMessageScheduler; private shouldRotateImageGenerationMessage; private updateImageGenerationMessageScheduler; private rotateImageGenerationMessage; private onResponseActivity; private showDelayedProgress; hasSameContent(other: IChatRendererContent, followingContent: IChatRendererContent[], element: ChatTreeItem): boolean; }