import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle"; import { IDialogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service"; import { IQuickInputService } from "@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service"; import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service"; import { IActivityService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/activity/common/activity.service"; import { IAuthenticationMcpAccessService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/browser/authenticationMcpAccessService.service"; import { IAuthenticationMcpUsageService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/browser/authenticationMcpUsageService.service"; import { AuthenticationSession, AuthenticationSessionAccount } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/common/authentication"; import { IAuthenticationService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/common/authentication.service"; import { IProductService } from "@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service"; import { IAuthenticationMcpService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/browser/authenticationMcpService.service"; export declare class AuthenticationMcpService extends Disposable implements IAuthenticationMcpService { private readonly activityService; private readonly storageService; private readonly dialogService; private readonly quickInputService; private readonly _productService; private readonly _authenticationService; private readonly _authenticationUsageService; private readonly _authenticationAccessService; readonly _serviceBrand: undefined; private _signInRequestItems; private _sessionAccessRequestItems; private readonly _accountBadgeDisposable; private _onDidAccountPreferenceChange; readonly onDidChangeAccountPreference: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<{ providerId: string; mcpServerIds: string[]; }>; private _inheritAuthAccountPreferenceParentToChildren; private _inheritAuthAccountPreferenceChildToParent; constructor(activityService: IActivityService, storageService: IStorageService, dialogService: IDialogService, quickInputService: IQuickInputService, _productService: IProductService, _authenticationService: IAuthenticationService, _authenticationUsageService: IAuthenticationMcpUsageService, _authenticationAccessService: IAuthenticationMcpAccessService); private registerListeners; private updateNewSessionRequests; private updateAccessRequests; private updateBadgeCount; private removeAccessRequest; updateAccountPreference(mcpServerId: string, providerId: string, account: AuthenticationSessionAccount): void; getAccountPreference(mcpServerId: string, providerId: string): string | undefined; removeAccountPreference(mcpServerId: string, providerId: string): void; private _getKey; updateSessionPreference(providerId: string, mcpServerId: string, session: AuthenticationSession): void; getSessionPreference(providerId: string, mcpServerId: string, scopes: string[]): string | undefined; removeSessionPreference(providerId: string, mcpServerId: string, scopes: string[]): void; private _updateAccountAndSessionPreferences; private showGetSessionPrompt; /** * This function should be used only when there are sessions to disambiguate. */ selectSession(providerId: string, mcpServerId: string, mcpServerName: string, scopes: string[], availableSessions: AuthenticationSession[]): Promise; private completeSessionAccessRequest; requestSessionAccess(providerId: string, mcpServerId: string, mcpServerName: string, scopes: string[], possibleSessions: AuthenticationSession[]): void; requestNewSession(providerId: string, scopes: string[], mcpServerId: string, mcpServerName: string): Promise; }