import { FronteggState, RestApi, SharedActions, WithCallback } from '../../../interfaces'; import { FronteggNextJSSession, IEnrollMFAWebAuthnPayload, IPasswordlessPostLoginPayload, IPreEnrollMFAWebAuthNForLoginResponse, IQuickSmsPasswordlessPreLoginPayload, IRecoverMFATokenPayload, IVerifyNewWebAuthnDevicePayload, IWebAuthnPostLoginPayload, LoginState } from '../interfaces'; import { IChangePhoneNumberWithVerification, ICreateNewDeviceSessionResponse, IEnrollMFAAuthenticatorApp, IEnrollMFASMS, IForgotPassword, ILogin, ILoginResponse, ILoginResponseV3, IPasswordlessPreLogin, IPostLogin, IPreEnrollMFA, IPreEnrollMFASMS, IPreLogin, IVerifyChangePhoneNumber, IVerifyInviteToken, IWebAuthnPreLogin, IWebAuthnPreLoginResponse } from '@frontegg/rest-api'; import { AuthState, UserIPData } from '../../interfaces'; import { MFAState } from '../../MfaState/interfaces'; declare const _default: (store: FronteggState, api: RestApi, sharedActions: SharedActions) => { preVerifyMFAWebAuthn: ({ callback, deviceId, ...payload }: WithCallback, import("../interfaces").IPreVerifyMFAWebAuthNForLoginResponse>, setLoadingAction: import("../interfaces").SetLoadingAction) => Promise; verifyMFAWebAuthn: ({ callback, deviceId, ...payload }: import("../interfaces").IVerifyMFAWebAuthnPayload, setLoadingAction: import("../interfaces").SetLoadingAction, isStepUp: boolean) => Promise; preVerifyMFAWebAuthnForLogin: (payload: WithCallback, import("../interfaces").IPreVerifyMFAWebAuthNForLoginResponse>) => Promise; verifyMFAWebAuthnForLogin: (payload: import("../interfaces").IVerifyMFAWebAuthnPayload) => Promise; preVerifyMFASMS: ({ callback, deviceId, ...payload }: WithCallback>, setLoadingAction: import("../interfaces").SetLoadingAction) => Promise; verifyMFASMS: ({ callback, deviceId, ...payload }: WithCallback>, setLoadingAction: import("../interfaces").SetLoadingAction, isStepUp?: boolean) => Promise; preVerifyMFASMSForLogin: (payload: WithCallback>) => Promise; verifyMFASMSForLogin: (payload: WithCallback>) => Promise; preVerifyMFAEmailCode: ({ callback, ...payload }: WithCallback, setLoadingAction?: import("../interfaces").SetLoadingAction) => Promise; verifyMFAEmailCode: ({ callback, ...payload }: WithCallback, setLoadingAction?: import("../interfaces").SetLoadingAction) => Promise; preVerifyMFAEmailCodeForLogin: (payload: WithCallback) => Promise; verifyMFAEmailCodeForLogin: (payload: WithCallback) => Promise; mfaWithAuthenticator: ({ callback, ...loginWithMfaPayload }: WithCallback, setLoadingAction: import("../interfaces").SetLoadingAction, isStepUp: boolean) => Promise; loginWithMfa: (payload: WithCallback) => Promise; getMfaRequiredState: (user: import("../../interfaces").User | any, retryConfig?: import("../../../interfaces").RetryConfig, shouldContinueWhenFailing?: boolean, emailFromSignup?: string) => Promise & { mfaState: Partial; loginState: Partial; }>; postHandleVerifyMFAResponseForStepUp: () => Promise; postHandleVerifyMFAResponseForLogin: (isAuthenticated: boolean, user: ILoginResponse) => Promise; handleVerifyMFAResponse: (payload: ILoginResponseV3, isStepUp?: boolean) => Promise; getFeatureFlags: (flags: string[]) => Promise; afterAuthNavigationUtil: (resetStateAction: (() => void) | (() => Promise), options?: import("../interfaces").AfterAuthNavigationUtilOptions) => Promise; afterAuthNavigation: (payload?: Pick) => Promise; afterStepUpAuthNavigation: () => Promise; afterAuthenticationStateUpdate: ({ user, tenants, activeTenant }: ILoginResponseV3, additionalUpdate?: Partial) => void; requestHostedLoginAuthorize: (additionalParams?: Record) => Promise; requestHostedLoginAuthorizeV2: (payload?: { additionalParams?: Record; shouldRedirectToLogin? /** * Sends the user to the tenant's SSO when a login or tenant switch is refused because that tenant requires it * (e.g. an invitation into a tenant whose SSO covers the user's email). The SSO login lands in that tenant. * @returns true when redirected, so the caller doesn't show the error * @protected */: boolean; firstTime?: boolean; loginDirectAction?: import("../interfaces").LoginDirectAction; }) => Promise; __requestHostedLoginAuthorize: (additionalParams?: Record, { forceTenantId }?: { forceTenantId?: boolean; }) => Promise; __requestHostedLoginSilentAuthorize: () => Promise; handleHostedLoginCallback: (payload: import("../interfaces").HostedLoginCallback) => Promise; setLoginState: (state: Partial) => void; resetLoginState: () => void; requestAuthorize: (firstTime?: boolean) => Promise; requestAuthorizeSSR: (payload: FronteggNextJSSession) => Promise; preLogin: (payload: WithCallback) => Promise; postLogin: (payload: IPostLogin) => Promise; login: (payload: WithCallback) => Promise; logout: (payload?: () => void) => Promise; silentLogout: (payload?: WithCallback<{ callbackTimeout?: number; hostedOAuthKeysToKeep?: string[]; }>) => Promise; recoverMfa: (payload: IRecoverMFATokenPayload) => Promise; quickSmsPasswordlessPreLogin: (_payload: WithCallback) => Promise; changePhoneNumberWithVerification: (_payload: WithCallback) => Promise; verifyChangePhoneNumber: (_payload: WithCallback) => Promise; passwordlessPreLogin: (_payload: WithCallback) => Promise; passwordlessPostLogin: (_payload: WithCallback) => Promise; verifyInviteToken: (payload: IVerifyInviteToken) => Promise; webAuthnPrelogin: (payload: WithCallback) => Promise; webAuthnPostLogin: (payload: IWebAuthnPostLoginPayload) => Promise; webAuthnCreateNewDeviceSession: (payload: WithCallback<{}, ICreateNewDeviceSessionResponse | null>) => Promise; webAuthnVerifyNewDeviceSession: (payload: IVerifyNewWebAuthnDevicePayload) => Promise; getUserIP: (payload: WithCallback<{}, UserIPData | boolean>) => Promise; preEnrollMFAWebAuthnForLogin: (_payload: WithCallback) => Promise; enrollMFAWebAuthnForLogin: (_payload: IEnrollMFAWebAuthnPayload) => Promise; enrollMFAAuthenticatorAppForLogin: (_payload: WithCallback) => Promise; preEnrollMFASMSForLogin: (_payload: WithCallback) => Promise; enrollMFASMSForLogin: (_payload: WithCallback) => Promise; handleEnrollMFAResponse: (payload: ILoginResponseV3) => Promise; resetBreachedPassword: (payload: IForgotPassword) => Promise; refreshTokenForSocialLogins: () => Promise; __refreshToken: () => Promise; __redirectToSsoIfRequired: (e: unknown) => Promise; }; export default _default;