import { OAuthClientInformationContext, OAuthClientMetadata, OAuthClientProvider, OAuthDiscoveryState, StoredOAuthClientInformation, StoredOAuthTokens } from "@modelcontextprotocol/client"; //#region src/cli-auth.d.ts interface SecureCredentialStore { get(account: string): Promise; set(account: string, value: string): Promise; delete(account: string): Promise; } declare class SystemCredentialStore implements SecureCredentialStore { private readonly service; constructor(service: string); get(account: string): Promise; set(account: string, value: string): Promise; delete(account: string): Promise; } /** Endpoint-partitioned static bearer/API-key credential stored in the OS keychain. */ declare class StaticTokenCredentialStore { private readonly store; private readonly account; constructor(store: SecureCredentialStore, endpoint: string); get(): Promise; set(token: string): Promise; delete(): Promise; } interface KeychainOAuthProviderOptions { readonly endpoint: string; readonly redirectUrl: string; readonly displayName: string; readonly version: string; readonly store: SecureCredentialStore; readonly openAuthorization: (url: URL) => void | Promise; } /** OAuth provider whose durable values live only in the OS credential store. */ declare class KeychainOAuthProvider implements OAuthClientProvider { private readonly options; readonly redirectUrl: string; readonly clientMetadata: OAuthClientMetadata; private readonly endpointAccount; constructor(options: KeychainOAuthProviderOptions); private issuerAccount; private endpointState; private saveEndpoint; private issuerState; private saveIssuer; private bindIssuer; private issuer; state(): Promise; expectedState(): Promise; clientInformation(context?: OAuthClientInformationContext): Promise; saveClientInformation(value: StoredOAuthClientInformation, context?: OAuthClientInformationContext): Promise; tokens(context?: OAuthClientInformationContext): Promise; saveTokens(value: StoredOAuthTokens, context?: OAuthClientInformationContext): Promise; redirectToAuthorization(url: URL): void | Promise; saveCodeVerifier(value: string): Promise; codeVerifier(): Promise; saveAuthorizationServerUrl(value: string): Promise; authorizationServerUrl(): Promise; saveResourceUrl(value: string): Promise; resourceUrl(): Promise; saveDiscoveryState(value: OAuthDiscoveryState): Promise; discoveryState(): Promise; invalidateCredentials(scope: "all" | "client" | "tokens" | "verifier" | "discovery"): Promise; loggedInIssuer(): Promise; } //#endregion export { KeychainOAuthProvider, KeychainOAuthProviderOptions, SecureCredentialStore, StaticTokenCredentialStore, SystemCredentialStore }; //# sourceMappingURL=cli-auth.d.ts.map