import { type ResolvedEnvironment, type StudioCredentials } from "@sapiom/mcp/auth"; export declare class StudioCredentialRefreshError extends Error { readonly kind: "transient" | "rejected"; constructor(kind: "transient" | "rejected", message: string); } /** Shared by Studio login, sign-out and refresh across CLI/desktop hosts. */ export declare function withStudioCredentialLock(operation: () => Promise): Promise; /** Rotate under the store lock, then persist atomically before exposing a token. */ export declare function refreshStudioCredentials(env: ResolvedEnvironment): Promise; /** Local sign-out is authoritative even if remote revocation is unavailable. */ export declare function revokeStudioCredentials(env: ResolvedEnvironment): Promise; //# sourceMappingURL=studio-credentials.d.ts.map