import { ButtonWithIcon } from "../../../../../../base/browser/ui/button/button.js"; import { IMarkdownString, MarkdownString } from "../../../../../../base/common/htmlContent.js"; import { Disposable, DisposableStore, IDisposable } from "../../../../../../base/common/lifecycle.js"; import { IObservable } from "../../../../../../base/common/observable.js"; import { IConfigurationService } from "../../../../../../platform/configuration/common/configuration.service.js"; import { IHoverService } from "../../../../../../platform/hover/browser/hover.service.js"; import { ITelemetryService } from "../../../../../../platform/telemetry/common/telemetry.service.js"; import { IChatRendererContent } from "../../../common/model/chatViewModel.js"; import { ChatTreeItem } from "../../chat.js"; import { IChatContentPart, IChatContentPartRenderContext } from "./chatContentParts.js"; import { IChatMarkdownAnchorService } from "./chatMarkdownAnchorService.service.js"; import { IInstantiationService } from "../../../../../../platform/instantiation/common/instantiation.js"; import { IMarkdownRenderer } from "../../../../../../platform/markdown/browser/markdownRenderer.js"; import { ThemeIcon } from "../../../../../../base/common/themables.js"; export declare abstract class ChatCollapsibleContentPart extends Disposable implements IChatContentPart { private title; private readonly hoverMessage; protected readonly hoverService: IHoverService; private readonly _collapsibleConfigurationService; private readonly telemetryService; static readonly userToggleEvent = "chatCollapsibleUserToggle"; private _domNode?; private readonly _renderedTitleWithWidgets; protected readonly _titleFileWidgetStore: DisposableStore; protected readonly hasFollowingContent: boolean; protected _isExpanded: import("../../../../../../base/common/observable.js").ISettableObservable; protected _collapseButton: ButtonWithIcon | undefined; protected _hoverChevron: HTMLElement | undefined; private readonly _overrideIcon; protected readonly _showCheckmarks: IObservable; private _contentElement?; private _contentInitialized; private _animationContainer; private _isExpandable; private ariaLabel; private readonly onWillCollapse; get icon(): ThemeIcon | undefined; set icon(value: ThemeIcon | undefined); protected readonly element: ChatTreeItem; constructor(title: IMarkdownString | string, context: IChatContentPartRenderContext, hoverMessage: IMarkdownString | undefined, hoverService: IHoverService, _collapsibleConfigurationService: IConfigurationService, telemetryService: ITelemetryService); get domNode(): HTMLElement; protected init(): HTMLElement; protected createCollapseButton(container: HTMLElement): ButtonWithIcon | undefined; protected get collapsibleKind(): string; protected get collapsibleInThinking(): boolean; protected toggleExpanded(): void; /** * Turns the row into a plain status line: it no longer toggles, and it drops * the affordances that would otherwise promise expansion — including its * place in the tab order, so it is not a focusable dead control. */ protected setExpandable(expandable: boolean): void; private logUserToggle; protected abstract initContent(): HTMLElement; protected shouldInitEarly(): boolean; protected shouldAnimateContent(): boolean; protected shouldPrepareContentAnimation(): boolean; protected setContentAnimationEnabled(enabled: boolean): void; protected get contentAnimationContainer(): HTMLElement | undefined; protected contentDidInitialize(): void; protected expansionDidChange(_expanded: boolean): void; abstract hasSameContent(other: IChatRendererContent, followingContent: IChatRendererContent[], element: ChatTreeItem): boolean; private updateAriaLabel; addDisposable(disposable: IDisposable): void; get expanded(): IObservable; protected isExpanded(): boolean; protected setExpanded(value: boolean): void; protected setTitle(title: string): void; protected setAriaLabel(label: string): void; protected setTitleWithWidgets(content: MarkdownString, instantiationService: IInstantiationService, chatMarkdownAnchorService: IChatMarkdownAnchorService, chatContentMarkdownRenderer: IMarkdownRenderer): void; }