import { Cartel } from '../models/Cartel';
/**
 * Chaleur du cartel (0..100).
 * - +N via ordres cartel / crimes / admins arrêtés (+50).
 * - -1 automatique par jour (cron).
 * - -20 via diplomate (100 000 ∞ combinés ombre+lumière).
 * - Palier visibilité réutilise HEAT_THRESHOLDS de visibility.service (40/60/80).
 * - À 100 strict → GIGN (géré par police-patrol extension).
 * - Cooldown GIGN 48h après raid.
 */
export declare class CartelHeatService {
    static readonly DAILY_DECAY = 1;
    /**
     * Diplomate paliers hebdomadaires (Phase 15 Commit 7, 20-04-2026
     * — réajusté Phase 8.5 audit 29-04-2026 : prix x2 pour rééquilibrer
     * vis-à-vis tribunaux/sous-main).
     * Fenêtre glissante 7 jours ; un cartel peut utiliser jusqu'aux caps suivants :
     *
     * | Tier | Nom                    | Coût ∞   | Heat  | Caps/semaine |
     * | 1    | Message discret        | 100 000  | −10   | 3            |
     * | 2    | Intervention concertée | 250 000  | −20   | 2            |
     * | 3    | Opération majeure      | 450 000  | −40   | 1            |
     */
    static readonly DIPLOMAT_TIERS: {
        readonly 1: {
            readonly cost: 100000;
            readonly heat: 10;
            readonly cap: 3;
            readonly label: "Message discret";
        };
        readonly 2: {
            readonly cost: 250000;
            readonly heat: 20;
            readonly cap: 2;
            readonly label: "Intervention concertée";
        };
        readonly 3: {
            readonly cost: 450000;
            readonly heat: 40;
            readonly cap: 1;
            readonly label: "Opération majeure";
        };
    };
    /** @deprecated Phase 15 Commit 7 — utiliser DIPLOMAT_TIERS[2].cost/heat */
    static readonly DIPLOMAT_COST_TOTAL = 250000;
    /** @deprecated Phase 15 Commit 7 — utiliser DIPLOMAT_TIERS[2].heat */
    static readonly DIPLOMAT_HEAT_REDUCTION = 20;
    static readonly GIGN_THRESHOLD = 100;
    static readonly GIGN_COOLDOWN_HOURS = 48;
    static readonly ADMIN_ARREST_HEAT_DELTA = 50;
    static adjust(cartelId: string, delta: number, reason: string, source?: string): Promise<number>;
    /**
     * Phase 15 Commit 7 (20-04-2026) — reset fenêtre hebdo si > 7 jours depuis
     * diplomat_week_start, remettant les 3 compteurs à 0 et décalant la fenêtre.
     * Retourne le cartel après reset éventuel (modifications persistées).
     */
    private static maybeResetDiplomatWeek;
    /**
     * Statut diplomate pour l'UI : remaining uses par palier + week_end ETA.
     */
    static getDiplomatStatus(cartelId: string): Promise<{
        tier1_remaining: number;
        tier2_remaining: number;
        tier3_remaining: number;
        week_end_at: string | null;
        tiers: typeof CartelHeatService.DIPLOMAT_TIERS;
    }>;
    /**
     * Payer un diplomate — 3 paliers (Phase 15 Commit 7, 20-04-2026).
     * Par défaut tier=2 (comportement historique -20 heat / 100 000 ∞).
     * Shadow en priorité puis light sur la trésorerie cartel.
     */
    static reduceHeatViaDiplomat(playerId: string, cartelId: string, tier?: 1 | 2 | 3): Promise<{
        success: boolean;
        message: string;
        new_heat?: number;
        paid_shadow?: number;
        paid_light?: number;
        tier?: 1 | 2 | 3;
        tier_remaining?: number;
    }>;
    /** CRON quotidien : -1 heat pour chaque cartel (palier strict 0). */
    static dailyDecay(): Promise<{
        processed: number;
    }>;
    /** Renvoie true si GIGN peut intervenir (heat=100 strict + cooldown 48h respecté). */
    static canTriggerGign(cartel: Cartel): boolean;
    /** Notifier tous les membres (leaders des gangs du cartel). */
    private static notifyMembers;
    /**
     * Saisie 20% trésorerie + 20% gangsters cartel suite raid GIGN.
     *
     * Phase 15 Commit 5 (20-04-2026) — étendu avec saisie des gangsters :
     *  - Arrondi sup pour gangsters (ex: 10 gangsters → 2 arrêtés) pour éviter
     *    qu'un cartel à 1-4 gangsters échappe à la saisie.
     *  - On prend les gangsters de plus FORTE contribution en priorité
     *    (l'État arrête les plus visibles), avec loyauté au milieu.
     *  - Suppression directe de CartelGangster (NPC "incarcérés" → out).
     */
    static policeSeizure(cartelId: string): Promise<{
        seized_light: number;
        seized_shadow: number;
        seized_gangsters: number;
    }>;
    /**
     * Phase 15 Commit 5 (20-04-2026) — déclenche un raid GIGN sur un cartel éligible
     * (heat >= 100 strict + cooldown 48h respecté). Wrapper qui fusionne canTriggerGign
     * + policeSeizure pour garantir qu'aucun raid n'a lieu hors conditions.
     */
    static triggerGignRaid(cartelId: string): Promise<{
        triggered: boolean;
        reason?: string;
        seized_light?: number;
        seized_shadow?: number;
        seized_gangsters?: number;
    }>;
    /**
     * CRON — scanne tous les cartels, déclenche GIGN sur ceux éligibles.
     * Cooldown 48h empêche un cartel de se faire raid 2× par jour.
     */
    static processAllGignRaids(): Promise<{
        scanned: number;
        raided: number;
    }>;
    /** +50 heat sur tous les membres du cartel suite arrestation admin. */
    static adminsArrestedPenalty(cartelId: string, custodyUntil: Date, reason?: string): Promise<void>;
    /**
     * Phase 15 Commit 4 (20-04-2026) — hook appelé par JudicialService.convictFromRecord
     * lorsqu'un joueur est incarcéré. Détecte si ce joueur est admin d'un cartel (via
     * leader d'un gang dont la CartelMember.is_admin = true) et déclenche l'overlay
     * custody + +50 heat.
     *
     * - Re-calcule custody_until = max des imprisoned_until de TOUS les admins du
     *   cartel (pour ne pas shrink si un autre admin est déjà dedans plus longtemps).
     * - N'ajoute +50 heat que si le cartel n'était pas déjà en custody (évite
     *   l'accumulation à 100 sur ré-incarcérations rapides du même admin).
     */
    static onAdminIncarcerated(adminPlayerId: string, imprisonedUntil: Date): Promise<{
        cartel_id: string;
        heat_added: boolean;
        new_custody_until: Date;
    } | null>;
    /** Réinitialisation overlay après retour admins (pas de prise de contrôle). */
    static clearCustody(cartelId: string): Promise<void>;
    /**
     * Phase 15 Commit 4 (20-04-2026) — appelé par PrisonService.releaseExpiredPrisoners /
     * JudicialService.onPrisonRelease quand un joueur sort de prison. Si ce joueur
     * est admin d'un cartel et que TOUS les admins sont désormais libres, on clear
     * custody (pas de reset de heat — le joueur/cartel doit gérer ça via diplomate).
     */
    static onAdminReleased(adminPlayerId: string): Promise<{
        cartel_id: string;
        cleared: boolean;
    } | null>;
}
//# sourceMappingURL=cartel-heat.service.d.ts.map