import { Separator } from "@codingame/monaco-vscode-api/vscode/vs/base/common/actions"; import { Emitter, Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event"; import { IMarkdownString } from "@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent"; import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle"; import type { ThemeIcon } from "@codingame/monaco-vscode-api/vscode/vs/base/common/themables"; import { IMarkdownRendererService } from "@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer.service"; import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service"; import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service"; import { IContextMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service"; import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation"; import { IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts"; export interface IChatConfirmationButton { label: string; isSecondary?: boolean; tooltip?: string; data: T; disabled?: boolean; readonly onDidChangeDisablement?: Event; moreActions?: (IChatConfirmationButton | Separator)[]; } export interface IChatConfirmationWidgetOptions { title: string | IMarkdownString; message: string | IMarkdownString; subtitle?: string | IMarkdownString; buttons: IChatConfirmationButton[]; toolbarData?: { arg: any; partType: string; partSource?: string; }; silent?: boolean; } export declare class ChatQueryTitlePart extends Disposable { private readonly element; private _title; private readonly _renderer; private readonly _onDidChangeHeight; readonly onDidChangeHeight: Event; private readonly _renderedTitle; get title(): string | IMarkdownString; set title(value: string | IMarkdownString); constructor(element: HTMLElement, _title: IMarkdownString | string, subtitle: string | IMarkdownString | undefined, _renderer: IMarkdownRendererService); private toMdString; } declare abstract class BaseSimpleChatConfirmationWidget extends Disposable { protected readonly context: IChatContentPartRenderContext; protected readonly instantiationService: IInstantiationService; protected readonly _markdownRendererService: IMarkdownRendererService; private readonly _configurationService; private _onDidClick; get onDidClick(): Event>; protected _onDidChangeHeight: Emitter; get onDidChangeHeight(): Event; private _domNode; get domNode(): HTMLElement; private get showingButtons(); setShowButtons(showButton: boolean): void; private readonly messageElement; private readonly silent; private readonly notificationManager; constructor(context: IChatContentPartRenderContext, options: IChatConfirmationWidgetOptions, instantiationService: IInstantiationService, _markdownRendererService: IMarkdownRendererService, contextMenuService: IContextMenuService, _configurationService: IConfigurationService, contextKeyService: IContextKeyService); protected renderMessage(element: HTMLElement, listContainer: HTMLElement): void; } /** @deprecated Use ChatConfirmationWidget instead */ export declare class SimpleChatConfirmationWidget extends BaseSimpleChatConfirmationWidget { private _renderedMessage; constructor(context: IChatContentPartRenderContext, options: IChatConfirmationWidgetOptions, instantiationService: IInstantiationService, markdownRendererService: IMarkdownRendererService, contextMenuService: IContextMenuService, configurationService: IConfigurationService, contextKeyService: IContextKeyService); updateMessage(message: string | IMarkdownString): void; } export interface IChatConfirmationWidget2Options { title: string | IMarkdownString; message: string | IMarkdownString | HTMLElement; icon?: ThemeIcon; subtitle?: string | IMarkdownString; buttons: IChatConfirmationButton[]; toolbarData?: { arg: any; partType: string; partSource?: string; }; } declare abstract class BaseChatConfirmationWidget extends Disposable { protected readonly _context: IChatContentPartRenderContext; protected readonly instantiationService: IInstantiationService; protected readonly markdownRendererService: IMarkdownRendererService; private readonly contextMenuService; private readonly _configurationService; private _onDidClick; get onDidClick(): Event>; protected _onDidChangeHeight: Emitter; get onDidChangeHeight(): Event; private _domNode; get domNode(): HTMLElement; private _buttonsDomNode; private get showingButtons(); setShowButtons(showButton: boolean): void; private readonly messageElement; private readonly notificationManager; constructor(_context: IChatContentPartRenderContext, options: IChatConfirmationWidget2Options, instantiationService: IInstantiationService, markdownRendererService: IMarkdownRendererService, contextMenuService: IContextMenuService, _configurationService: IConfigurationService, contextKeyService: IContextKeyService); updateButtons(buttons: IChatConfirmationButton[]): void; protected renderMessage(element: HTMLElement | IMarkdownString | string, listContainer: HTMLElement): void; } export declare class ChatConfirmationWidget extends BaseChatConfirmationWidget { private _renderedMessage; constructor(context: IChatContentPartRenderContext, options: IChatConfirmationWidget2Options, instantiationService: IInstantiationService, markdownRendererService: IMarkdownRendererService, contextMenuService: IContextMenuService, configurationService: IConfigurationService, contextKeyService: IContextKeyService); updateMessage(message: string | IMarkdownString): void; } export declare class ChatCustomConfirmationWidget extends BaseChatConfirmationWidget { constructor(context: IChatContentPartRenderContext, options: IChatConfirmationWidget2Options, instantiationService: IInstantiationService, markdownRendererService: IMarkdownRendererService, contextMenuService: IContextMenuService, configurationService: IConfigurationService, contextKeyService: IContextKeyService); } export {};