declare global {
  namespace NodeJS {
    interface ProcessEnv {
      NODE_ENV?: 'development' | 'production' | 'test';

      // API runtime toggles
      GRIDPILOT_API_PERSISTENCE?: 'postgres' | 'inmemory';
      GRIDPILOT_API_BOOTSTRAP?: string;
      GENERATE_OPENAPI?: string;

      // Database (TypeORM)
      DATABASE_URL?: string;
      DATABASE_HOST?: string;
      DATABASE_PORT?: string;
      DATABASE_USER?: string;
      DATABASE_PASSWORD?: string;
      DATABASE_NAME?: string;

      // Policy / operational mode
      GRIDPILOT_POLICY_CACHE_MS?: string;
      GRIDPILOT_POLICY_PATH?: string;
      GRIDPILOT_OPERATIONAL_MODE?: string;
      GRIDPILOT_MAINTENANCE_ALLOW_VIEW?: string;
      GRIDPILOT_MAINTENANCE_ALLOW_MUTATE?: string;

      // Authorization
      GRIDPILOT_AUTHZ_CACHE_MS?: string;
      GRIDPILOT_USER_ROLES_JSON?: string;
    }
  }
}

export {};