import { MapAction } from '../constants/map-actions';
export interface ActionResult {
    success: boolean;
    message: string;
    rewards?: {
        infinite_light?: number;
        infinite_shadow?: number;
        xp?: number;
        conscience?: number;
        social?: number;
    };
    penalties?: {
        police_risk?: number;
        heat?: number;
    };
    data?: Record<string, any>;
}
export declare class MapActionService {
    private static clamp;
    /** +15% success bonus at night (20h-6h Paris time) */
    private static getNightBonus;
    private static getSkills;
    private static getSkill;
    private static applyGaugeDeltas;
    /**
     * FIX(audit-15-04): Self-target guard — prevents exploits like
     * burgling your own residence or extorting your own business.
     * Returns an error ActionResult if the target is owned by the player, null otherwise.
     */
    private static checkNotSelfTargeting;
    /**
     * Get available actions for a target
     */
    /**
     * audit 15-04-2026 Phase 9 : mapping icon -> infra_type pour les POIs orphelins.
     * Duplique la table de map-action.routes.ts (extraction en constants/infra.ts possible
     * si l'usage grandit).
     */
    private static readonly INFRA_ICON_MAP;
    /** Derive infra_type from a POI row (uses icon field). Returns null si non-infrastructure. */
    private static resolveInfraType;
    /**
     * Phase 17.2 finition Gap 6 (2026-05-06) — Résout le player_id du
     * propriétaire de la cible selon son type. Utilisé par le check
     * non-aggression cartel pour identifier la victime potentielle.
     *
     * Mapping :
     *   • 'player' / 'npc'        → targetId est déjà le player_id
     *   • 'residence'             → Residence.player_id
     *   • 'business' / 'warehouse' → table.player_id
     *   • 'vehicle'               → Vehicle.player_id
     *   • 'infrastructure'        → null (pas de propriétaire joueur)
     */
    private static resolveTargetPlayerId;
    static getAvailableActions(playerId: string, targetType: string, targetId: string): Promise<MapAction[]>;
    /**
     * Execute an action
     */
    static executeAction(playerId: string, actionCode: string, targetId: string, targetType: string, params?: any): Promise<ActionResult>;
    /**
     * Execute donation
     */
    static executeDonation(playerId: string, targetId: string, amount: number): Promise<ActionResult>;
    /**
     * Execute assassination
     */
    static executeAssassination(playerId: string, targetId: string): Promise<ActionResult>;
    /**
     * Execute robbery
     */
    static executeRobbery(playerId: string, targetId: string): Promise<ActionResult>;
    /**
     * Execute burglary
     */
    static executeBurglary(playerId: string, targetId: string): Promise<ActionResult>;
    static executeVisit(playerId: string, targetId: string, targetType: string): Promise<ActionResult>;
    static executeExtortion(playerId: string, targetId: string): Promise<ActionResult>;
    static executeBusinessRobbery(playerId: string, targetId: string): Promise<ActionResult>;
    static executeSabotage(playerId: string, targetId: string): Promise<ActionResult>;
    /**
     * audit 15-04-2026 Phase 10 : recrutement payant.
     * Coût initial : 2000 ∞_shadow (argent sale — recrutement criminel).
     * Nouveau member start avec loyalty=50 (Phase 2 column).
     */
    static executeRecruit(playerId: string, targetId: string): Promise<ActionResult>;
    static executeEnterVehicle(playerId: string, targetId: string): Promise<ActionResult>;
    /**
     * Phase 8.12 (2026-04-29) — Vol de véhicule contextuel (MapContextMenu).
     * Délègue à CarjackService.carjack avec validation des règles :
     *   - Pas le sien
     *   - Pas allié de gang/cartel
     *   - Pas police/NPC institutionnel (driven_by null OU player non-NPC police)
     * CarjackService gère le combat éventuel + transfert + notif anonymisée.
     */
    static executeStealVehicle(playerId: string, targetId: string): Promise<ActionResult>;
    /** Find the best weapon the player carries and return its attack_bonus */
    private static getBestWeaponBonus;
    /**
     * Heal : restaure physical_health a 100 + libere d'une hospitalisation en cours.
     *
     * Tarification :
     *   - Soin basique (physical_health < 100)     : 50 ∞_light par HP manquant
     *   - Liberation d'hospitalisation              : +5000 ∞_light (tarif fixe)
     * Paiement en infinite_light (argent blanc — hopital public).
     */
    static executeHeal(playerId: string): Promise<ActionResult>;
    /**
     * Check record : consulte le casier judiciaire du joueur.
     * Informatif, pas de coût, pas d'effet. Retourne les 50 derniers CriminalRecord + degré police.
     */
    static executeCheckRecord(playerId: string): Promise<ActionResult>;
    /**
     * Pay bail : liberation anticipee de prison contre paiement.
     *
     * Tarification : 1500 ∞_light par heure de peine restante.
     * Exemple : 24h restantes = 36000 ∞.
     * Paiement en infinite_light (argent blanc — caution legale).
     *
     * Note : n'efface PAS les CriminalRecord, libere juste de prison.
     */
    static executePayBail(playerId: string): Promise<ActionResult>;
    /**
     * Item_subtype exact utilise dans player_inventory pour le permis de port d'armes.
     * Garde en dur pour eviter les divergences avec les seeds / admin panel.
     */
    private static readonly WEAPON_PERMIT_SUBTYPE;
    /**
     * Verifie si le joueur possede un Permis de port d'armes en inventaire.
     * Toute quantite > 0 et tout storage_condition valent possession.
     */
    static hasWeaponPermit(playerId: string): Promise<boolean>;
    /**
     * Execute l'achat d'une arme legale chez un armurier.
     *
     * Conditions :
     *  - Le business existe, son type = 'armurerie'.
     *  - Le joueur possede l'item document "Permis de port d'armes".
     *  - L'arme existe dans WEAPONS, is_legal=true.
     *  - Solde infinite_light >= prix de l'arme.
     *
     * Effet :
     *  - Debite le prix en infinite_light (argent blanc — achat legal declare).
     *  - Cree une ligne PlayerInventory item_type='weapon' storage_condition='on_person' quantity=1.
     *  - Credite le cash_register de l'armurier (comme un extort negatif : revenu legitime).
     *  - Log TransactionService.
     */
    static executeBuyWeapon(playerId: string, businessId: string, weaponName?: string): Promise<ActionResult>;
    /**
     * Garage Auto (amenity=car_repair / business.type='garage') : réparer un véhicule.
     * Prix = business.repair_price_per_hp × hp_to_repair.
     * hp_to_repair ∈ [1..(100 - vehicle.condition)].
     */
    static executeRepairVehicle(playerId: string, businessId: string, vehicleId?: string, hpToRepair?: number): Promise<ActionResult>;
    /**
     * Carrosserie (shop=perfumery / business.type='carrosserie') : repeindre véhicule.
     * Prix = heat_reduction × 6 000 ∞. Max 10 pts par session. Cooldown 6h/véhicule.
     */
    static executePaintVehicle(playerId: string, businessId: string, vehicleId?: string, heatReduction?: number): Promise<ActionResult>;
    /**
     * Concessionnaire (amenity=car_rental) : achat d'un véhicule depuis le stock hebdo.
     * Délègue à DealershipService.buyVehicle qui gère transaction atomique.
     */
    static executeBuyVehicleDealership(playerId: string, poiId: string, stockId?: string): Promise<ActionResult>;
    /**
     * Lance une méditation 8h. Bloque toute action pendant la durée.
     * À la fin (CRON 60s), −1 chaleur.
     */
    static executeMeditate(playerId: string, poiId: string): Promise<ActionResult>;
    static executeDonateAssociation(playerId: string, businessId: string, heatReduction?: number): Promise<ActionResult>;
    static executeChangeStyle(playerId: string, _businessId: string): Promise<ActionResult>;
}
//# sourceMappingURL=map-action.service.d.ts.map