import { ThemeIcon } from "@codingame/monaco-vscode-api/vscode/vs/base/common/themables"; import { Lazy } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lazy"; import { IMarkdownRendererService } from "@codingame/monaco-vscode-api/vscode/vs/platform/markdown/browser/markdownRenderer.service"; import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.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 { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service"; import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service"; import { IWorkspaceTrustRequestService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspaceTrust.service"; import { IWorkspaceTrustManagementService } from "@codingame/monaco-vscode-api/vscode/vs/platform/workspace/common/workspaceTrust.service"; import { IWorkbenchLayoutService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service"; import { ChatEntitlementContext, ChatEntitlementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService"; import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service"; import { ChatSetupController } from "./chatSetupController.js"; import { IChatSetupResult, ChatSetupAnonymous, ChatSetupStrategy } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatSetup/chatSetup"; import { IDefaultAccountService } from "@codingame/monaco-vscode-api/vscode/vs/platform/defaultAccount/common/defaultAccount.service"; import { IHostService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service"; import { IExtensionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service"; export declare class ChatSetup { private readonly context; private readonly controller; private readonly telemetryService; private readonly layoutService; private readonly keybindingService; private readonly chatEntitlementService; private readonly logService; private readonly widgetService; private readonly workspaceTrustRequestService; private readonly markdownRendererService; private readonly defaultAccountService; private readonly hostService; private readonly extensionService; private readonly workspaceTrustManagementService; private static instance; static getInstance(instantiationService: IInstantiationService, context: ChatEntitlementContext, controller: Lazy): ChatSetup; private pendingRun; private skipDialogOnce; constructor(context: ChatEntitlementContext, controller: Lazy, telemetryService: ITelemetryService, layoutService: IWorkbenchLayoutService, keybindingService: IKeybindingService, chatEntitlementService: ChatEntitlementService, logService: ILogService, widgetService: IChatWidgetService, workspaceTrustRequestService: IWorkspaceTrustRequestService, markdownRendererService: IMarkdownRendererService, defaultAccountService: IDefaultAccountService, hostService: IHostService, extensionService: IExtensionService, workspaceTrustManagementService: IWorkspaceTrustManagementService); skipDialog(): void; run(options?: { disableChatViewReveal?: boolean; forceSignInDialog?: boolean; additionalScopes?: readonly string[]; forceAnonymous?: ChatSetupAnonymous; dialogIcon?: ThemeIcon; dialogTitle?: string; setupStrategy?: ChatSetupStrategy; disableCloseButton?: boolean; onSignInStarted?: () => void; }): Promise; private doRun; /** * Whether the default chat extension has finished activating. `activationTimes` * is only set once activation completes, so `undefined` means "not yet active". */ private isChatExtensionActivated; /** * Resolves once the default chat extension has finished activating (bounded by * a timeout). Detection relies only on the extension lifecycle, so it never * touches the user's authentication session. */ private whenChatExtensionActivated; private showDialog; private getButtons; private getDialogTitle; private createDialogFooter; } export declare function refreshTokens(commandService: ICommandService): void;