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

interface ImportMetaEnv {
  /** URL de base Matomo (répertoire contenant matomo.js), ex. https://analytics.example.com/ */
  readonly VITE_MATOMO_URL?: string;
  /** Identifiant du site Matomo */
  readonly VITE_MATOMO_SITE_ID?: string;
}

interface ImportMeta {
  readonly env: ImportMetaEnv;
}

/** File d’attente Matomo avant chargement de matomo.js */
interface Window {
  _paq?: unknown[][];
}
