/** * 登录验证码输入组件 * 复用 Register2 的 CodeInput 样式和逻辑 */ import React from 'react'; export interface LoginCodeInputProps { /** 账号(邮箱或手机号) */ account: string; /** 账号类型 */ accountType: 'email' | 'phone'; /** 验证码长度 */ codeLength?: number; /** 提交验证码 */ onSubmit?: (code: string) => void; /** 重新发送 */ onResend?: () => void; /** 返回 */ onBack?: () => void; /** 倒计时秒数 */ countdown?: number; /** 加载状态 */ loading?: boolean; /** 按钮文案(默认为"Log in",忘记密码场景为"Verify") */ submitButtonText?: string; /** 错误信息 */ error?: string; /** 当用户输入时清除错误的回调 */ onClearError?: () => void; } declare function LoginCodeInput({ account, accountType, codeLength, onSubmit, onResend, onBack, countdown, loading, submitButtonText, error, onClearError, }: LoginCodeInputProps): React.JSX.Element; export default LoginCodeInput;