import { POISuperCategory } from '../constants/poi-super-category';
/**
 * Seuils de chaleur pour la visibilité publique
 * chaleur < 60 → bâtiments/zone de racket invisibles pour les autres
 * chaleur >= 60 → bâtiments et zone de racket visibles sur la carte pour tous
 * chaleur >= 80 → avatar du joueur visible sur la carte mondiale
 */
export declare const HEAT_THRESHOLDS: {
    readonly GPS_ONLY: 40;
    readonly BUILDINGS_VISIBLE: 60;
    readonly AVATAR_VISIBLE: 80;
};
/**
 * Phase 15 Commit 3 (20-04-2026) — paliers de visibilité des Points de
 * Territoire d'un cartel pour les joueurs NON-membres. Les membres d'un
 * cartel voient toujours leurs propres territoires en full détail.
 *
 * chaleur < 40          → territoire invisible (cartel discret)
 * chaleur ∈ [40, 60[    → 'gps' : marker minimal (position seule, pas de nom)
 * chaleur ∈ [60, 80[    → 'name' : + nom du cartel + HP
 * chaleur >= 80         → 'full' : + rayon d'influence + is_origin
 */
export declare const TERRITORY_HEAT_THRESHOLDS: {
    readonly GPS_ONLY: 40;
    readonly NAME_VISIBLE: 60;
    readonly FULL_DETAILS: 80;
};
export type TerritoryVisibilityLevel = 'gps' | 'name' | 'full' | 'owned' | 'ally';
export interface VisibleCartelTerritory {
    id: string;
    cartel_id: string;
    lat: number;
    lng: number;
    is_origin: boolean;
    visibility_level: TerritoryVisibilityLevel;
    /** Null si gps_only. */
    cartel_name?: string | null;
    /** Null si gps_only. */
    hp?: number | null;
    hp_max?: number | null;
    /** Null sauf palier full ou owned/ally. */
    influence_radius_m?: number | null;
    /** Heat du cartel au moment du calcul (utile front pour tooltip — hidden si pas permis). */
    cartel_heat?: number | null;
    /** Cartel custody/prison overlay actif (calife bravé). */
    custody_active?: boolean;
    /** Phase 16 (2026-04-21) : cartel allié au viewer via CartelAlliance status=accepted. */
    is_ally?: boolean;
}
export interface VisibleEntity {
    type: 'player' | 'gangster' | 'building' | 'vehicle' | 'poi';
    id: string;
    lat: number;
    lon: number;
    name?: string;
    heading?: number;
    in_transit?: boolean;
    disguised?: boolean;
    entity_id?: string | null;
    icon?: string | null;
    subtype?: string | null;
    /**
     * Type POI canonique (Phase 16, 2026-04-23) — exposé uniquement pour entities
     * de type 'poi'. Valeurs DB : business|residence|warehouse|service|government|
     * religious|port. Sert au frontend à construire le `poi_type` des ordres
     * wizard/dispatcher (visite/extorsion/développement) sans retomber sur `subtype`
     * qui porte l'icon fine et cassait les checks backend type='business'.
     */
    poi_type?: string | null;
    business_type?: string | null;
    revenue_per_day?: number | null;
    employee_count?: number | null;
    threat?: boolean;
    super_category?: POISuperCategory | null;
    category?: string | null;
    has_illegal?: boolean;
    is_owned_by_me?: boolean;
    is_racketed_by_me?: boolean;
    gang_id?: string | null;
    allied?: boolean;
    grade?: number;
    grade_name?: string;
    assigned_weapon?: string | null;
    assigned_vehicle_id?: string | null;
    guarding_building_id?: string | null;
    assigned_racket_zone_id?: string | null;
    hospitalized?: boolean;
    experience?: number;
    role?: string;
}
export interface VisibilityResult {
    players: VisibleEntity[];
    gangsters: VisibleEntity[];
    threats: VisibleEntity[];
    buildings: VisibleEntity[];
    vehicles: VisibleEntity[];
    pois: VisibleEntity[];
    policeUnits: VisibleEntity[];
    /** Phase 15 Commit 3 — Points de Territoire cartel (visibilité par palier heat). */
    cartelTerritories: VisibleCartelTerritory[];
    /**
     * Phase 7 markers (2026-05-07) — Missions actives du joueur géolocalisées
     * (MissionProgress.status='in_progress' && target_lat/lon non null).
     */
    missions: VisibleMission[];
}
/** Phase 7 markers — projection minimale d'une mission active sur la carte. */
export interface VisibleMission {
    id: string;
    mission_id: string;
    lat: number;
    lon: number;
    name: string;
    category: string;
    status: string;
}
export declare class VisibilityService {
    /**
     * Get all visible entities for a player
     */
    static getVisibleEntities(playerId: string): Promise<VisibilityResult>;
    /**
     * Check if a point is within range
     */
    static isInRange(lat1: number, lon1: number, lat2: number, lon2: number, radiusKm: number): boolean;
    /**
     * Discover a POI for a player
     */
    static discoverPOI(playerId: string, poiId: string): Promise<void>;
    /**
     * Calculate player influence radius from Points d'Influence (PI)
     * Formule: 1000m base + 100m par PI (sans plafond)
     * @param influencePoints - player_gauges.influence (PI, 0-∞)
     */
    static calculatePlayerInfluenceRadius(influencePoints: number): number;
    /**
     * Check if a player's buildings/territory should be visible to ALL players
     * Based on chaleur (police heat) threshold
     */
    static isPubliclyVisible(playerId: string): Promise<{
        buildings: boolean;
        avatar: boolean;
    }>;
    /**
     * Expire les déguisements dont la durée est dépassée.
     * Appelé par CRON toutes les 60 secondes.
     * Reset active_disguise_id et disguise_expires_at à null.
     */
    static expireDisguises(): Promise<number>;
}
//# sourceMappingURL=visibility.service.d.ts.map