import { LoginOptions } from '../../types'; import { AcrValue } from './params'; export type StepUpOptions> = LoginOptions & { /** * Authentication context to request. Maps to `acr_values`. * Takes precedence over `acrValues` when both are set. */ acr?: AcrValue; /** * Where to send the user after the step-up. Carried inside OAuth `state`. * Read it back with `readStepUpState` on the callback. This package returns * the authorization URL and does not navigate. */ returnTo?: string; /** * Extra authorization parameters from a generic bag. * `prompt=none` is rejected. Other entries are not copied onto the URL. */ parameters?: Record; }; /** * Builds an interactive authorization URL that asks Kinde for a stronger or * more recent authentication. Returns the URL and PKCE material. Redirecting, * or opening a browser, is left to the caller (`navigateToKinde` or a framework). * * Never sends `prompt=none`. When discovery does not advertise * `acr_values_supported`, `acr` throws and a `maxAge`-only request falls back * to `prompt=login` without sending `max_age`. * * `reauthState` is decoded first. Its `acrValues`, `maxAge`, and `state` are * ignored, and it cannot change the `prompt=login` fallback. */ export declare const stepUp: >(domain: string, options: StepUpOptions, config?: { disableUrlSanitization: boolean; }) => Promise<{ url: URL; state: string; nonce: string; codeChallenge: string; codeVerifier: string; }>;