import { I as ICache, C as Cacheable } from './AuthcClient-e13f668e.js'; declare class LocalStorageCache implements ICache { set(key: string, entry: T): void; get(key: string): T; remove(key: string): void; allKeys(): string[]; } declare class InMemoryCache { enclosedCache: ICache; } /** * For context on the istanbul ignore statements below, see: * https://github.com/gotwarlost/istanbul/issues/690 */ /** * Thrown when network requests to the Auth server fail. */ declare class GenericError extends Error { error: string; error_description: string; constructor(error: string, error_description: string); static fromPayload({ error, error_description, }: { error: string; error_description: string; }): GenericError; } /** * Thrown when handling the redirect callback fails, will be one of Authc's * Authentication API's Standard Error Responses: https://authc.io/docs/api/authentication?javascript#standard-error-responses */ declare class AuthenticationError extends GenericError { state: string; appState: any; constructor(error: string, error_description: string, state: string, appState?: any); } /** * Thrown when silent auth times out (usually due to a configuration issue) or * when network requests to the Auth server timeout. */ declare class TimeoutError extends GenericError { constructor(); } /** * Error thrown when the login popup times out (if the user does not complete auth) */ declare class PopupTimeoutError extends TimeoutError { popup: Window; constructor(popup: Window); } declare class PopupCancelledError extends GenericError { popup: Window; constructor(popup: Window); } /** * Error thrown when the token exchange results in a `mfa_required` error */ declare class MfaRequiredError extends GenericError { mfa_token: string; constructor(error: string, error_description: string, mfa_token: string); } export { AuthenticationError as A, GenericError as G, InMemoryCache as I, LocalStorageCache as L, MfaRequiredError as M, PopupTimeoutError as P, TimeoutError as T, PopupCancelledError as a };