import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service"; import { IModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model.service"; import { ITextModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/resolverService.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 { IDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service"; import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service"; import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation"; import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service"; import { IMarkdownRenderer } from "@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer"; import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service"; import { IPreferencesService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/preferences/common/preferences.service"; import { IChatToolInvocation, type IChatTerminalToolInvocationData, type ILegacyChatTerminalToolInvocationData } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService"; import type { CodeBlockModelCollection } from "../../../common/codeBlockModelCollection.js"; import { IChatCodeBlockInfo } from "@codingame/monaco-vscode-2339d6ac-d6bb-53cd-95ee-81911735d1c7-common/vscode/vs/workbench/contrib/chat/browser/chat"; import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service"; import { IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts"; import { EditorPool } from "../chatMarkdownContentPart.js"; import { BaseChatToolInvocationSubPart } from "./chatToolInvocationSubPart.js"; export declare enum TerminalToolConfirmationStorageKeys { TerminalAutoApproveWarningAccepted = "chat.tools.terminal.autoApprove.warningAccepted" } export interface ITerminalNewAutoApproveRule { key: string; value: boolean | { approve: boolean; matchCommandLine?: boolean; }; } export type TerminalNewAutoApproveButtonData = ({ type: "enable"; } | { type: "configure"; } | { type: "skip"; } | { type: "newRule"; rule: ITerminalNewAutoApproveRule | ITerminalNewAutoApproveRule[]; }); export declare class ChatTerminalToolConfirmationSubPart extends BaseChatToolInvocationSubPart { private readonly context; private readonly renderer; private readonly editorPool; private readonly currentWidthDelegate; private readonly codeBlockModelCollection; private readonly codeBlockStartIndex; private readonly instantiationService; private readonly dialogService; private readonly keybindingService; private readonly modelService; private readonly languageService; private readonly configurationService; private readonly contextKeyService; private readonly chatWidgetService; private readonly preferencesService; private readonly storageService; readonly domNode: HTMLElement; readonly codeblocks: IChatCodeBlockInfo[]; constructor(toolInvocation: IChatToolInvocation, terminalData: IChatTerminalToolInvocationData | ILegacyChatTerminalToolInvocationData, context: IChatContentPartRenderContext, renderer: IMarkdownRenderer, editorPool: EditorPool, currentWidthDelegate: () => number, codeBlockModelCollection: CodeBlockModelCollection, codeBlockStartIndex: number, instantiationService: IInstantiationService, dialogService: IDialogService, keybindingService: IKeybindingService, modelService: IModelService, languageService: ILanguageService, configurationService: IConfigurationService, contextKeyService: IContextKeyService, chatWidgetService: IChatWidgetService, preferencesService: IPreferencesService, storageService: IStorageService, textModelService: ITextModelService, hoverService: IHoverService); private _createButtons; private _showAutoApproveWarning; private _getUniqueCodeBlockUri; private _appendMarkdownPart; }