import { IEmailPasswordlessPreLogin, ILoginResponse, IPasswordlessPreLogin, IUsernamePasswordlessPreLogin, MFAStrategyEnum, UserMFADevicesResponse } from '@frontegg/rest-api'; import { FronteggState } from '../../interfaces'; import { User } from '../interfaces'; import { MFAStep } from '../MfaState/interfaces'; export declare const isAbsoluteUrl: (path: string) => boolean; export declare const getRedirectUrl: ({ authenticatedUrl, enforceRedirectToSameSite, allowedRedirectOrigins, includeQueryParam, }: { authenticatedUrl: string; enforceRedirectToSameSite: boolean; allowedRedirectOrigins: string[]; includeQueryParam: boolean; }) => string; export declare const getSearchParamsFromUrl: (url: string) => string | undefined; export declare const getPathAndSearchParamsFromUrl: (url: string, preventRedirectUrlOriginCleaning?: boolean) => string; /** * * @param key * @returns the value of the param as string or undefined if it does not exist */ export declare const getSearchParam: (key: string) => string | undefined; export declare const TENANT_ID_PARAM_KEY = "tenantId"; /** An OIDC SSO page without redirect_uri comes back to the OIDC callback, which completes the login with its code. */ export declare const withOidcRedirectUri: (address: string, oidcRedirectUrl?: string) => string; export declare const getNumberOfMfaDevices: (mfaDevices: UserMFADevicesResponse) => { numberOfWebAuthnDevices: number; numberOfPhoneDevices: number; numberOfAuthenticators: number; numberOfEmails: number; totalDevices: number; }; export declare const getMfaStepForEnrolledUsers: (mfaDevices: UserMFADevicesResponse) => MFAStep.verify | MFAStep.authenticatorApp | MFAStep.smsVerifyCode | MFAStep.emailVerifyCode; export declare const getMfaStepForNotEnrolledUsers: (mfaStrategies: MFAStrategyEnum[]) => MFAStep.verify | MFAStep.authenticatorApp | MFAStep.smsSetPhoneNumber | MFAStep.emailVerifyCode; export declare const isOauthCallbackRoute: (activeUri: string) => boolean; export declare function isEmailPayload(payload: IPasswordlessPreLogin): payload is IEmailPasswordlessPreLogin; export declare function isUsernamePayload(payload: IPasswordlessPreLogin): payload is IUsernamePasswordlessPreLogin; export declare const getBaseNameWithoutSlashSuffix: (state: FronteggState) => string | null; export declare const shouldShowPasswordRotationPromptFunc: (user: ILoginResponse | User) => boolean;