/// <reference types="react" />
import type { RegisterFlowData } from '../shared/registerFlow';
export interface CodeInputProps {
    /** 流程数据 */
    flowData: RegisterFlowData;
    /** 验证码长度 */
    codeLength?: number;
    /** 提交验证码 */
    onSubmit?: (code: string) => void;
    /** 重新发送 */
    onResend?: () => void;
    /** 返回 */
    onBack?: () => void;
    /** 倒计时秒数 */
    countdown?: number;
    /** 加载状态 */
    loading?: boolean;
    /** 错误信息 */
    error?: string;
    /** 当用户输入时清除错误的回调 */
    onClearError?: () => void;
}
declare function CodeInput({ flowData, codeLength, onSubmit, onResend, onBack, countdown, loading, error, onClearError, }: CodeInputProps): JSX.Element;
export default CodeInput;
