export interface PlanLimits {
  docs_per_month: number;
  max_pages_per_doc: number;
  max_file_size_mb: number;
  features: string[];
  api_access: boolean;
  providers: string[];
}

export interface User {
  id: string;
  email: string;
  name: string;
  avatar_url?: string;
  // Plan information
  tier: string;        // alias for plan (legacy)
  plan: string;        // 'free' | 'starter' | 'pro' | 'business' | 'enterprise'
  subscription_status: string; // 'active' | 'canceled' | 'past_due' | 'trialing'
  subscription_ends_at?: string;
  cancel_at_period_end?: boolean;
  // Usage stats (current month)
  docs_translated_this_month: number;
  pages_translated_this_month: number;
  api_calls_this_month: number;
  extra_credits: number;
  // Plan limits
  plan_limits?: PlanLimits;
  // Account
  created_at: string;
}
