import { Event } from "../../../../base/common/event.js"; import { AllowedExtension } from "../common/authentication.js"; export declare const IAuthenticationAccessService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier; export interface IAuthenticationAccessService { readonly _serviceBrand: undefined; readonly onDidChangeExtensionSessionAccess: Event<{ providerId: string; accountName: string; }>; /** * Check extension access to an account * @param providerId The id of the authentication provider * @param accountName The account name that access is checked for * @param extensionId The id of the extension requesting access * @returns Returns true or false if the user has opted to permanently grant or disallow access, and undefined * if they haven't made a choice yet */ isAccessAllowed(providerId: string, accountName: string, extensionId: string): boolean | undefined; readAllowedExtensions(providerId: string, accountName: string): AllowedExtension[]; updateAllowedExtensions(providerId: string, accountName: string, extensions: AllowedExtension[]): void; removeAllowedExtensions(providerId: string, accountName: string): void; }