/** * 忘记密码流程组件 * 包含三个步骤: * 1. 确认邮箱 (ConfirmEmail) * 2. 输入验证码 (CodeInput) * 3. 设置新密码 (SetPassword) */ import React from 'react'; import { PhoneValueObject } from './PhoneInput'; export interface ForgotPasswordFlowProps { /** 初始账号(可选,如果用户在登录页已输入) */ initialEmail?: string | PhoneValueObject; /** 账号类型 */ accountType: 'email' | 'phone'; /** 发送验证码回调 */ onSendCode?: (account: string | PhoneValueObject) => Promise; /** 验证验证码回调 */ onVerifyCode?: (account: string | PhoneValueObject, code: string) => Promise; /** 发送重置密码链接回调 */ onSendResetLink?: (account: string) => Promise; /** 重置密码回调 */ onResetPassword?: (account: string | PhoneValueObject, password: string, code: string) => Promise; /** 返回登录页 */ onBack?: () => void; /** 加载状态 */ loading?: boolean; /** 倒计时 */ countdown?: number; /** 可用的国家/地区列表 */ countries?: Array<{ name: string; code: string; calling_code: string; currency_code: string; }>; } declare function ForgotPasswordFlow({ initialEmail, accountType, onSendCode, onVerifyCode, onResetPassword, onSendResetLink, onBack, loading, countdown, countries, }: ForgotPasswordFlowProps): React.JSX.Element | null; export default ForgotPasswordFlow;