/// <reference types="vite/client" />

interface ImportMetaEnv {
  readonly VITE_API_URL: string
  readonly VITE_API_BASE_URL: string
  readonly VITE_APP_TITLE: string
  readonly VITE_APP_VERSION: string
  readonly VITE_ENVIRONMENT: string
  readonly VITE_PILOT_MODE_ENABLED?: string
  readonly VITE_PILOT_COUPON_CODE?: string
  readonly VITE_PILOT_TRIAL_MONTHS?: string
  readonly VITE_STRIPE_PUBLISHABLE_KEY?: string
  // more env variables...
}

interface ImportMeta {
  readonly env: ImportMetaEnv
}

// Runtime configuration injected by Kubernetes at container startup
interface Window {
  __RUNTIME_CONFIG__?: {
    VITE_API_URL?: string;
    VITE_APP_TITLE?: string;
    VITE_APP_VERSION?: string;
    VITE_PILOT_MODE_ENABLED?: string;
    VITE_PILOT_COUPON_CODE?: string;
    VITE_PILOT_TRIAL_MONTHS?: string;
    VITE_STRIPE_PUBLISHABLE_KEY?: string;
  };
}