import { Mission, MissionCategory } from '../models/Mission';
import { MissionProgress, MissionStatus } from '../models/MissionProgress';
export declare class MissionService {
    /** List all missions in a category, ordered */
    static listByCategory(category: MissionCategory): Promise<Mission[]>;
    /** Get a single mission definition */
    static getMission(missionId: string): Promise<Mission | null>;
    /** Get mission by its unique code */
    static getMissionByCode(code: string): Promise<Mission | null>;
    /** Get all mission progress for a player, optionally filtered */
    static getPlayerProgress(playerId: string, filters?: {
        category?: MissionCategory;
        status?: MissionStatus;
    }): Promise<MissionProgress[]>;
    /** Get available missions for a player (prerequisites met, not completed) */
    static getAvailableMissions(playerId: string): Promise<Mission[]>;
    /** Check if a player meets mission prerequisites */
    private static checkPrerequisites;
    /**
     * Phase 4 : Selectionne le POI cible le plus proche pour une mission.
     *
     * Strategie :
     * 1. Si la mission a target_lat/lon fixes → utilise ces coords.
     * 2. Si la mission a target_poi_type → cherche le POI le plus proche dans la zone du joueur,
     *    puis fallback toutes zones si rien trouve.
     * 3. Si rien → null (mission sans deplacement, timer pur).
     *
     * @returns { poi_id, lat, lon } ou null
     */
    private static selectTargetPoi;
    /**
     * Phase 4 : Preview du timing d'une mission (aller + mission + retour) SANS la lancer.
     * Utilise pour l'affichage dans MissionModal avant le clic "Commencer".
     */
    static previewMissionTiming(playerId: string, missionId: string): Promise<{
        travel_to_minutes: number;
        mission_minutes: number;
        travel_back_minutes: number;
        total_minutes: number;
        target_name?: string;
    }>;
    /** Start a mission for a player */
    static startMission(playerId: string, missionId: string, options?: {
        men_assigned?: number;
        assigned_member_ids?: string[];
        player_participates?: boolean;
    }): Promise<MissionProgress>;
    /**
     * FIX(story-phase2): Persiste le choix moral immediatement apres la lecture narrative.
     * Appele depuis PATCH /mission/progress/:id/moral-choice.
     * Le choix est stocke en uppercase (convention backend 'A'/'B').
     */
    static setMoralChoice(playerId: string, progressId: string, rawChoice: string, which?: 1 | 2 | 3): Promise<void>;
    /** Resolve a completed mission (called when timer expires or manually) */
    static resolveMission(playerId: string, progressId: string, rawMoralChoice?: string): Promise<{
        mission: {
            id: string;
            code: string;
            title: string;
            category: MissionCategory;
            difficulty: import("../models/Mission").MissionDifficulty;
            has_moral_choice: boolean;
            choice_a_conscience: number;
            choice_b_conscience: number;
        };
        progress: MissionProgress;
        success: boolean;
        roll: number;
        success_rate: number;
        rewards: {
            [x: string]: any;
        };
    }>;
    /** Calculate effective success rate based on men, gear, etc. */
    private static calculateSuccessRate;
    /**
     * Apply rewards/penalties to player.
     *
     * Phase 16 (2026-04-22) — rendu public pour permettre à
     * `MissionEngineService` et aux autres services mission
     * (gang-mission / dealer-mission) de réutiliser le même pattern riche
     * sans dupliquer la logique money + xp + gauges + tier + items + contacts.
     */
    static applyRewards(playerId: string, rewards: Record<string, any>): Promise<void>;
    /** Unlock a UI tab for the player */
    static unlockTab(playerId: string, tabKey: string): Promise<void>;
    /**
     * Phase 8.5d.2 (2026-04-29) — Ajoute un contact dans Player.contacts[].
     * Idempotent : si player_id déjà présent, skip.
     * Pattern utilisé pour unlock contacts narratifs (urgentistes, indic, etc.).
     */
    static unlockContact(playerId: string, contact: {
        player_id: string;
        name: string;
        phone_number: string;
        is_npc: boolean;
    }): Promise<void>;
    /** Handle police event on mission failure */
    private static triggerPoliceEvent;
    /** Initialize mission progress for a new player (first common trunk mission = available) */
    static initPlayerMissions(playerId: string): Promise<void>;
    /** Check and unlock newly available missions after a mission completion */
    static refreshAvailableMissions(playerId: string): Promise<Mission[]>;
    /**
     * Return all story missions for a given path (crime | politique | redemption)
     * with their status and human-readable locked_reasons. Used by the frontend
     * MissionsColumn to display locked missions with a red overlay instead of
     * hiding them (per user consigne 2026-04-18).
     *
     * status = 'completed' | 'in_progress' | 'available' | 'locked'
     * locked_reasons = array of short French strings explaining what's missing.
     */
    static getMissionsStatusForPath(playerId: string, pathName: string): Promise<({
        status: "locked" | "available";
        locked_reasons: string[];
        id: string;
        code: string;
        title: string;
        description: string;
        narrative: string | null;
        category: MissionCategory;
        difficulty: import("../models/Mission").MissionDifficulty;
        order_index: number;
        duration_minutes: number;
        duration_seconds: number | null;
        men_required: number;
        base_success_rate: number;
        police_risk: number;
        prerequisites: Record<string, any>;
        rewards_success: Record<string, any>;
        rewards_failure: Record<string, any>;
        unlocks_tab: string | null;
        has_moral_choice: boolean;
        choice_a_conscience: number;
        choice_b_conscience: number;
        axes_impact: Record<string, Record<string, number>> | null;
        rewards_conditional: Record<string, Record<string, any>> | null;
        is_active: boolean;
        requires_external_team: boolean;
        target_poi_type: string | null;
        target_lat: number | null;
        target_lon: number | null;
        radius_min_km: number;
        radius_max_km: number;
        created_at: Date;
    } | {
        status: "completed" | "in_progress";
        locked_reasons: string[];
        id: string;
        code: string;
        title: string;
        description: string;
        narrative: string | null;
        category: MissionCategory;
        difficulty: import("../models/Mission").MissionDifficulty;
        order_index: number;
        duration_minutes: number;
        duration_seconds: number | null;
        men_required: number;
        base_success_rate: number;
        police_risk: number;
        prerequisites: Record<string, any>;
        rewards_success: Record<string, any>;
        rewards_failure: Record<string, any>;
        unlocks_tab: string | null;
        has_moral_choice: boolean;
        choice_a_conscience: number;
        choice_b_conscience: number;
        axes_impact: Record<string, Record<string, number>> | null;
        rewards_conditional: Record<string, Record<string, any>> | null;
        is_active: boolean;
        requires_external_team: boolean;
        target_poi_type: string | null;
        target_lat: number | null;
        target_lon: number | null;
        radius_min_km: number;
        radius_max_km: number;
        created_at: Date;
    })[]>;
    /**
     * Prereq check that accumulates human-readable missing reasons instead of
     * early-returning like checkPrerequisites. Kept subset-compatible: covers
     * missions/tiers/experience/gauges/items/skills/axes/moral_choices (the
     * gameplay-facing ones the player can act on). Gang/vehicle/qualified_men
     * prereqs are heavier to compute and only matter for late-game empire
     * missions — skipped here, reported as a generic "prérequis d'équipe".
     */
    private static computeLockedReasons;
}
//# sourceMappingURL=mission.service.d.ts.map