/**
 * Phase 8 v2 (2026-05-01) — élargi pour matcher Q8 spec user :
 *   - 'gign'      : attaque GIGN (raid territoire). Drive held +8j à la
 *                   sortie naturelle, ou redirect tribunal/prison si held>0
 *                   ou pending judicial.
 *   - 'police'    : interpellation police classique. Drive
 *                   JudicialFlowService.enterGardeAVue (scene police) à
 *                   la sortie.
 *   - 'combat'    : combat joueur ou gang. Sortie normale (sauf si held>0
 *                   ou pending judicial → redirect).
 *   - 'overdose'  : surdose drogue. Sortie normale.
 *   - 'other'     : fallback.
 *
 * 'gign_combat' est conservé en alias rétro-compat (= 'gign').
 */
export type HospitalizeReason = 'combat' | 'gign' | 'gign_combat' | 'police' | 'overdose' | 'other';
export interface HospitalizeResult {
    hospitalized: boolean;
    /** True si évasion auto (player owned_hospital matchait l'hôpital où il aurait dû aller). */
    auto_escaped: boolean;
    /** UUID du business hospital où le joueur a été envoyé (null si auto_escaped). */
    hospital_business_id: string | null;
    hospitalized_until: Date | null;
}
export declare class HospitalService {
    /**
     * Hospitalise un joueur. Trigger global :
     *   1. Si player.owned_hospital_business_id ET c'est cet hôpital qui est le
     *      plus proche → évasion auto (skip hospitalize, PV reset à 100, flavor notif).
     *   2. Sinon : set hospitalized_until=now+24h, set Player.hospital_lat/lon +
     *      current_lat/lon = nearest hospital, physical_health=5.
     *   3. Notif système (avec flavor GIGN si reason='gign_combat').
     */
    static hospitalize(playerId: string, reason?: HospitalizeReason, _legacyDurationHours?: number): Promise<HospitalizeResult>;
    /**
     * CRON 60s : libère les joueurs dont `hospitalized_until <= now` OU
     * `physical_health >= 100` (cas où le soin progressif a atteint 100
     * avant la durée totale).
     *
     * Phase 8 v2 (2026-05-01) — comportement post-release selon hospital_reason :
     *   - 'gign' :
     *       - if held_remaining_ms > 0 OR pending judicial → redirect tribunal/prison
     *       - else → sortie + held_remaining_ms += 8 jours
     *   - 'police' :
     *       - trigger JudicialFlowService.enterGardeAVue (scene police)
     *   - 'combat' :
     *       - if held_remaining_ms > 0 OR pending judicial → redirect
     *       - else → sortie normale
     *   - 'overdose' / 'other' / null :
     *       - sortie normale, pas de held ajouté
     *
     * Tous les cas : frais 3000 ∞ Light (clamp si insuffisant, pas de dette),
     * reset hospital_lat/lon, healing reset (via healToFull).
     *
     * Idempotent : ne touche que les joueurs avec hospitalized_until passé
     * OU physical_health == 100 (soin progressif atteint le cap avant l'heure).
     */
    static processReleases(): Promise<{
        released: number;
        total_fees: number;
    }>;
    /**
     * GET /api/hospital/status — Retourne le contexte hôpital pour le frontend
     * (countdown, missions, contacts, achat, frais à venir).
     */
    static getHospitalStatus(playerId: string): Promise<{
        is_hospitalized: boolean;
        hospital_business_id: string | null;
        hospital_name: string | null;
        hospital_lat: number | null;
        hospital_lon: number | null;
        time_remaining_h: number;
        fee_due: number;
        has_health_card: boolean;
        can_buy_hospital: boolean;
        owns_this_hospital: boolean;
        healing_pts_remaining: number;
        bras_droit_active: boolean;
        /**
         * Phase 8 v2 narratives (2026-05-01) — true uniquement si la mission
         * H_01_REVEIL a été complétée AVEC `moral_choice='A'` (= "comment ça
         * va" + discussion) ET `moral_choice_2='A'` (= don 50% argent
         * accepté). Toute autre combinaison (A_B, B) → false : pas de bouton
         * évasion. Évite l'incohérence v1 où n'importe quel completed H_01
         * débloquait l'évasion.
         */
        escape_unlocked: boolean;
    }>;
    /**
     * Achat de l'hôpital où le joueur est actuellement hospitalisé (35M ∞).
     * Requires : `can_buy_hospital_unlocked=true` (set par mission H_03).
     * Effet : transfère ownership du business + set Player.owned_hospital_business_id.
     */
    static purchaseHospital(playerId: string): Promise<{
        success: boolean;
        business_id: string;
        price: number;
    }>;
}
//# sourceMappingURL=hospital.service.d.ts.map