/** * Hook de récupération de mot de passe v1.0 * Architecture Frontend-First avec appels directs à l'IAM * * @version 2.7.9 */ export interface UseMobilePasswordOptions { saasApiUrl: string; iamApiUrl: string; autoLoadCredentials?: boolean; } export declare function useMobilePassword(options: UseMobilePasswordOptions): { credentialsLoaded: boolean; processToken: string | null; status: import("..").MobilePasswordStatus; storedOtp: string | null; receiveMode: "email" | "phone" | null; maskedEmail: string | null; maskedPhone: string | null; loading: boolean; error: string | null; errorType: string | null; isCompleted: boolean; isChoiceRequired: boolean; isPendingOtp: boolean; isPendingPassword: boolean; loadCredentials: () => Promise<{ success: boolean; error_type?: undefined; } | { success: boolean; error_type: string; }>; initRecovery: (email: string) => Promise<{ success: boolean; status: "choice_required"; error_type?: undefined; } | { success: boolean; status: "pending_otp"; error_type?: undefined; } | { success: boolean; error_type: string | undefined; status?: undefined; }>; selectMethod: (choice: "email" | "phone") => Promise<{ success: boolean; error: string; error_type?: undefined; } | { success: boolean; error?: undefined; error_type?: undefined; } | { success: boolean; error_type: string | undefined; error?: undefined; }>; verifyOtp: (inputCode: string) => boolean; resetPassword: (password: string) => Promise<{ success: boolean; error: string; error_type?: undefined; } | { success: boolean; error?: undefined; error_type?: undefined; } | { success: boolean; error_type: string | undefined; error?: undefined; }>; resendOtp: () => Promise<{ success: boolean; error: string; cooldown?: undefined; error_type?: undefined; } | { success: boolean; cooldown: number | undefined; error?: undefined; error_type?: undefined; } | { success: boolean; error_type: string | undefined; error?: undefined; cooldown?: undefined; }>; reset: () => void; clearError: () => void; }; export default useMobilePassword;