import { CommitChangeDto, ILoginResponse, ISignUpUser } from '@frontegg/rest-api'; import { FronteggState } from '../interfaces'; import { AuthPageRoutes } from './interfaces'; export * from './Entitlements/helpers'; export * from './LoginState/helpers'; export * from './StepUpState/helpers'; export declare const isMfaRequired: (user: ILoginResponse, appName: string) => boolean; export declare const isResetPasswordRequired: (user: ILoginResponse, appName: string) => boolean; export declare const mapMetaDataObjectToActions: (obj: any, path?: string[]) => CommitChangeDto[]; export declare const getUri: (urlStrategy: FronteggState["root"]["urlStrategy"]) => string; /** * On the OIDC or hosted login callback the page still has to finish the login with its code: a refresh refused before * that is not a reason to go to SSO again. On the OIDC callback the IdP would send the user straight back here, forever; * on the hosted callback a new hosted login would replace the PKCE verifier the code exchange needs. */ export declare const isOnLoginCodeCallbackRoute: (store: FronteggState) => boolean; /** * After a switch refused for SSO the tab points at the SSO tenant. Its SSO login comes back on a callback route and * keeps it; any other page load means the user didn't finish that login, so the tab goes back to its tenant. */ export declare const restoreTabTenantUnlessSsoCallback: (store: FronteggState) => Promise; export declare const prepareIdentifiersForSignup: (payload: ISignUpUser) => ISignUpUser; /** * Whether the current route is an auth page (login, tenant chooser, social / magic link / SSO callback), not one to come * back to. Unlike isAuthRoute: after-login / sign-up destinations don't count, and endsWith lets a basename prefix it. */ export declare const isOnAuthPageRoute: (urlStrategy: FronteggState["root"]["urlStrategy"], routes?: Partial) => boolean; export declare const isAuthRoute: (path: string, routes?: Partial) => boolean;