import { SessionManager } from '../../sessionManager'; export declare const ACR_VALUES: readonly ["mfa", "phr"]; export type AcrValue = (typeof ACR_VALUES)[number]; /** * Maps `acrValues` to the `acr_values` query parameter. * Returns undefined when the option is unset so the parameter is omitted. */ export declare const formatAcrValues: (acrValues: unknown) => string | undefined; /** * Maps `maxAge` to the `max_age` query parameter. * `0` is sent. Unset, `""`, `null`, and `NaN` are omitted. * A negative or non-integer value throws before a URL is built. */ export declare const formatMaxAge: (maxAge: unknown) => string | undefined; /** * Highest recognised context in a space-separated `acr_values` string, or null. * Matches how Kinde applies a list: `phr` wins over `mfa`. */ export declare const highestAcr: (acrValues: string | null | undefined) => AcrValue | null; /** * Remembers the context requested on the authorization URL so a callback error * can report it. Clears any previous request when this login does not ask for one. */ export declare const rememberStepUpRequest: (storage: SessionManager | null, params: Record) => Promise; /** Reads the `acr` remembered for this request from session storage. */ export declare const acrFromStored: (value: unknown) => AcrValue | null; /** Reads the `max_age` remembered for this request, or null when it is not a valid value. */ export declare const maxAgeFromStored: (value: unknown) => number | null;