import { RedirectOptions } from '@frontegg/rest-api'; export interface IsSteppedUpOptions { maxAge?: number; } export interface SteppedUpJWTValues { amr?: string[]; acr?: string; auth_time?: number; } /** * @param options.amr * @param options.acr * @param options.auth_time - auth time of the user (last login time) * @param options.maxAge - max age of step up * @returns true when the user is stepped up, false otherwise */ export declare const isSteppedUp: (user?: SteppedUpJWTValues | null, { maxAge }?: IsSteppedUpOptions) => boolean; export interface UrlDerivedStepUp { isStepUpRequested: boolean; maxAge?: number; } export declare const getUrlDerivedStepUp: () => UrlDerivedStepUp; /** * Set the url and query params in the local storage FRONTEGG_AFTER_AUTH_REDIRECT_URL value * @param urlStrategy 'hash' saves the route in the hash, which is the page the app shows */ export declare function setAfterAuthRedirectUrlForStepUp(urlStrategy?: 'path' | 'hash'): void; /** * Redirects to the step up url with the max age param and set the redirect url in the local storage * The redirect url will be used after the step up flow is done * @param stepUpUrl - step up url to redirect to * @param onRedirectTo - redirect to function * @param maxAge - max age of step up */ export declare const redirectByStepUpUrl: (stepUpUrl: string, onRedirectTo: (path: string, opts?: RedirectOptions) => void, maxAge?: number) => void;