// Types TypeScript globaux

import "next-auth";

declare module "next-auth" {
  interface Session {
    user: {
      id: string;
      name?: string | null;
      email?: string | null;
      role: string;
    };
  }
  interface User {
    role: string;
  }
}

declare module "@auth/core/jwt" {
  interface JWT {
    role?: string;
    id?: string;
  }
}

export type StatutChambre = "DISPONIBLE" | "OCCUPEE" | "NETTOYAGE" | "MAINTENANCE";
export type StatutReservation = "CONFIRMEE" | "EN_ATTENTE" | "ANNULEE" | "TERMINEE";
export type TypeChambre = "SIMPLE" | "DOUBLE" | "SUITE" | "FAMILIALE";
export type MethodePaiement = "ESPECES" | "CARTE" | "VIREMENT" | "MOBILE_MONEY";
export type RoleUtilisateur = "ADMIN" | "MANAGER" | "RECEPTIONIST";
