/** * No API key / credential was available to dispatch a request. * * The default message preserves the historical `"No API key for provider: X"` * wording, which {@link Flag.AuthFailed}'s regex (`no api key`) keys off — but * the flag is also attached structurally so classification never depends on the * exact phrasing. */ export declare class MissingApiKeyError extends Error { readonly provider: string | undefined; constructor(provider?: string, message?: string); } /** The provider is turned off in its auth rules (`disabled ""`), so nothing may call it. */ export declare class ProviderDisabledError extends MissingApiKeyError { readonly reason: string; constructor(provider: string, reason: string); } /** * Every usable OAuth credential for a provider failed to refresh with a * retryable error (network blip, timeout, 5xx). The stored credentials are * intact, so this is classified transient: retrying the request can succeed, * unlike {@link MissingApiKeyError}. The refresh failure is kept as `cause`. */ export declare class OAuthRefreshUnavailableError extends Error { readonly provider: string; constructor(provider: string, cause: unknown); } /** A user-facing login flow required an `onPrompt` callback that was not supplied. */ export declare class OnPromptRequiredError extends Error { constructor(providerLabel: string); } /** An interactive login asked for an API key but the user supplied an empty value. */ export declare class ApiKeyRequiredError extends Error { constructor(message?: string); } /** * A user cancelled an interactive login / device flow. Classified as an abort * so it is never surfaced as a retryable transient failure. */ export declare class LoginCancelledError extends Error { constructor(message?: string); }