import type { JourneyStep } from '../step.utils.js'; /** * Utility for handling recovery code nodes. * * Example: * * ```js * // Determine if step is Display Recovery Codes step * const isDisplayRecoveryCodesStep = RecoveryCodes.isDisplayStep(step); * if (isDisplayRecoveryCodesStep) { * const recoveryCodes = RecoveryCodes.getCodes(step); * // Do the UI needful * } * ``` */ export declare abstract class RecoveryCodes { static getDeviceName(step: JourneyStep): string; /** * Retrieves the recovery codes by parsing the JavaScript message text in callback. * * @param step The step to evaluate * @return Recovery Code values in array */ static getCodes(step: JourneyStep): string[]; /** * Determines if the given step is a Display Recovery Codes step. * * @param step The step to evaluate * @return Is this step a Display Recovery Codes step */ static isDisplayStep(step: JourneyStep): boolean; /** * Gets the recovery codes step. * * @param step The step to evaluate * @return gets the Display Recovery Codes' callback */ private static getDisplayCallback; } export type { JourneyStep } from '../step.utils.js'; export type { TextOutputCallback } from '../callbacks/text-output-callback.js'; export type { BaseCallback } from '../callbacks/base-callback.js'; //# sourceMappingURL=recovery-codes.d.ts.map