import { PlayerInventory } from '../models/PlayerInventory';
import { Vehicle } from '../models/Vehicle';
/**
 * Allocations virtuelles (Phase 15, 19-04-2026) — Q-D utilisateur.
 *
 * L'item ou le véhicule reste physiquement chez le joueur. On marque juste
 * assigned_to_gang_id ou assigned_to_cartel_id pour indiquer qu'il est mis
 * à disposition du gang/cartel. Les ordres de mission peuvent alors l'équiper
 * sur les gangsters. Au désassignement (UI ou fin de mission), la colonne
 * repasse à NULL — pas de déplacement physique.
 *
 * Règles :
 *  - Un item/véhicule ne peut être alloué qu'à UN seul gang OU cartel à la fois.
 *  - Le player doit être membre du gang/cartel visé.
 *  - Un item en cours de listing marketplace (is_listed=true) ne peut pas être
 *    alloué.
 */
export declare class AllocationService {
    /**
     * Phase 15 (20-04-2026) — capture le lieu d'origine d'un item avant de
     * l'allouer à un gang/cartel. Consigne user L672 : « il se destock
     * automatiquement d'un lieu de stockage actuel de notre parc pour aller
     * au gang donc si on le desassigne du gang il retourne au lieu de
     * stockage précedent ».
     *
     * Map storage_condition → previous_location_type :
     *   - 'stored' (résidence/business/warehouse) → dérive via storage_location_id
     *     qu'on checke contre chaque repo. Fallback : 'player' (sur soi).
     *   - 'vehicle' → 'vehicle'
     *   - 'on_person' | 'stashed' | 'listed' → 'player'
     */
    private static capturePreviousLocation;
    static allocateInventoryToGang(playerId: string, inventoryId: string, gangId: string): Promise<void>;
    static deallocateInventoryFromGang(playerId: string, inventoryId: string): Promise<void>;
    static allocateInventoryToCartel(playerId: string, inventoryId: string, cartelId: string): Promise<void>;
    static deallocateInventoryFromCartel(playerId: string, inventoryId: string): Promise<void>;
    /**
     * Restaure storage_condition + storage_location_id depuis previous_location.
     * Fallback : si lieu disparu (bâtiment vendu…), retombe sur 'on_person'/player.
     * Nettoie les previous_* pour signaler qu'ils ont été consommés.
     */
    private static buildRestorePatch;
    /** Capture le lieu d'origine d'un véhicule (garage/résidence) avant allocation gang/cartel. */
    private static captureVehiclePreviousLocation;
    /** Restaure l'assigned_residence_id du véhicule depuis previous_location (ou null si player). */
    private static buildVehicleRestorePatch;
    /**
     * Phase 15 (20-04-2026) — stationnement auto autour du POI Territoire
     * gang (rayon 50m). Si le véhicule a un garage (assigned_residence_id),
     * on ne bouge pas sa position : il reste "dans" le garage invisible.
     */
    private static parkVehicleNearGangTerritory;
    private static parkVehicleNearCartelTerritory;
    static allocateVehicleToGang(playerId: string, vehicleId: string, gangId: string): Promise<void>;
    static deallocateVehicleFromGang(playerId: string, vehicleId: string): Promise<void>;
    static allocateVehicleToCartel(playerId: string, vehicleId: string, cartelId: string): Promise<void>;
    static deallocateVehicleFromCartel(playerId: string, vehicleId: string): Promise<void>;
    /** Items du joueur qui NE sont PAS alloués au gang/cartel (stock personnel). */
    static getPlayerPersonalInventory(playerId: string): Promise<PlayerInventory[]>;
    /** Items alloués par TOUS les membres d'un gang. */
    static getGangAllocatedInventory(gangId: string): Promise<PlayerInventory[]>;
    static getCartelAllocatedInventory(cartelId: string): Promise<PlayerInventory[]>;
    /** Véhicules non alloués (stock perso). */
    static getPlayerPersonalVehicles(playerId: string): Promise<Vehicle[]>;
    static getGangAllocatedVehicles(gangId: string): Promise<Vehicle[]>;
    static getCartelAllocatedVehicles(cartelId: string): Promise<Vehicle[]>;
}
//# sourceMappingURL=allocation.service.d.ts.map