import type { EIdentifierType, IForgotPassword, IResetPassword, IPasswordRecoveryStrategy } from '@frontegg/rest-api'; import type { WithCallback } from '../../interfaces'; export type ResetTokenValidationStatus = 'idle' | 'pending' | 'valid' | 'invalid'; export declare enum ForgotPasswordStep { 'forgotPassword' = "forgotPassword", 'resetPasswordViaSms' = "resetPasswordViaSms", 'passwordRecoverySelector' = "passwordRecoverySelector", 'resetPasswordPage' = "resetPasswordPage", 'forgotPasswordEmailSuccess' = "forgotPasswordEmailSuccess", 'resetPasswordSuccess' = "resetPasswordSuccess" } export interface TestConfig { allowPassphrases: boolean; maxLength: number; minLength: number; minPhraseLength: number; minOptionalTestsToPass: number; } export interface ForgotPasswordState { step: ForgotPasswordStep; passwordConfig: Partial | null; identifier: string; identifierType: EIdentifierType; recaptchaToken?: string; loading: boolean; sessionId?: string; userId?: string; token?: string; error?: any; activeStrategies?: IPasswordRecoveryStrategy[]; resetTokenValidationStatus: ResetTokenValidationStatus; } export interface IForgotPasswordPayload extends WithCallback { recaptchaToken?: string; } export interface IResetPasswordPayload extends WithCallback { recaptchaToken?: string; } export interface IDeterminePasswordRecoveryStrategyPayload { identifier: string; identifierType: EIdentifierType; recaptchaToken?: string; } export type IVerifyPasswordViaSmsPayload = { otcToken: string; };