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 { MarkdownRenderer } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer"; import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.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 { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service"; import { IHostService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service"; export interface IChatConfirmationButton { label: string; isSecondary?: boolean; tooltip?: string; data: any; disabled?: boolean; onDidChangeDisablement?: Event; moreActions?: IChatConfirmationButton[]; } export declare class ChatQueryTitlePart extends Disposable { private readonly element; private _title; private readonly _renderer; private readonly _openerService; 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: MarkdownRenderer, _openerService: IOpenerService); private toMdString; } declare abstract class BaseChatConfirmationWidget extends Disposable { protected readonly instantiationService: IInstantiationService; private readonly _configurationService; private readonly _hostService; 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; protected readonly markdownRenderer: MarkdownRenderer; constructor(title: string | IMarkdownString, subtitle: string | IMarkdownString | undefined, buttons: IChatConfirmationButton[], instantiationService: IInstantiationService, contextMenuService: IContextMenuService, _configurationService: IConfigurationService, _hostService: IHostService); protected renderMessage(element: HTMLElement, listContainer: HTMLElement): void; } export declare class ChatConfirmationWidget extends BaseChatConfirmationWidget { private readonly _container; private _renderedMessage; constructor(title: string | IMarkdownString, subtitle: string | IMarkdownString | undefined, message: string | IMarkdownString, buttons: IChatConfirmationButton[], _container: HTMLElement, instantiationService: IInstantiationService, contextMenuService: IContextMenuService, configurationService: IConfigurationService, hostService: IHostService); updateMessage(message: string | IMarkdownString): void; } export declare class ChatCustomConfirmationWidget extends BaseChatConfirmationWidget { constructor(title: string | IMarkdownString, subtitle: string | IMarkdownString | undefined, messageElement: HTMLElement, buttons: IChatConfirmationButton[], container: HTMLElement, instantiationService: IInstantiationService, contextMenuService: IContextMenuService, configurationService: IConfigurationService, hostService: IHostService); } export {};