import type { IDisposable } from "../../../base/common/lifecycle.js"; import type { AuthenticateParams } from "./agent.js"; import type { AgentInfo } from "./state/sessionState.js"; export interface IAgentHostAdvertisedAuthentication extends IDisposable { resolve(agents: readonly AgentInfo[]): Promise; } /** Session identity and granted scopes suffice to reconcile a removal without retaining its token. */ export interface IAgentHostAuthenticationSessionRemoval { readonly providerId: string; readonly sessions: readonly { readonly id: string; readonly scopes: readonly string[]; }[]; } /** A declared authentication provider has not finished starting. */ export declare class AgentHostAuthenticationPendingError extends Error { constructor(resource: string); }