import { LoginState } from "@wix/sdk-runtime/login-state"; import type { IOAuthStrategy } from "@wix/sdk"; import type { AuthenticationErrorCodes } from "../types.js"; type SDKErrorCode = NonNullable>, { loginState: LoginState.FAILURE; }>['errorCode']>; type ErrorCodeMap = Record; export declare function mapErrorCode(errorCode: T): ErrorCodeMap[T]; export declare class AuthenticationError extends Error { loginState: LoginState; errorCode?: AuthenticationErrorCodes; constructor(message: string, loginState: LoginState, errorCode?: AuthenticationErrorCodes); } export {}; //# sourceMappingURL=errors.d.ts.map