/**
 * 注册流程类型定义
 */

import { AppColors } from '../../theme';

export interface RegisterFormData {
  email: string;
  verificationCode: string;
  username: string;
  nickname: string;
  phone: string;
  password: string;
  confirmPassword: string;
}

export interface RegisterStepProps {
  formData: RegisterFormData;
  updateFormData: (data: Partial<RegisterFormData>) => void;
  onNext: () => void;
  onPrev?: () => void;
  colors?: AppColors;
  // 状态
  loading?: boolean;
  sendingCode?: boolean;
  countdown?: number;
  // 回调
  onSendCode?: (email: string) => Promise<boolean>;
}

export type RegisterStep = 0 | 1 | 2;

export interface StepConfig {
  id: RegisterStep;
  title: string;
  component: React.ComponentType<RegisterStepProps>;
}

// 确保文件被识别为模块
export {};

