import type { WizardOrderInput } from './order-wizard.service';
export type PlannedActionStrategy = 'at_time' | 'on_arrival';
export type PlannedActionSource = 'scheduled_order' | 'journey';
export type PlannedActionStatus = 'pending' | 'in_progress' | 'executed' | 'failed' | 'cancelled';
/**
 * Format unifié pour les actions planifiées d'un joueur, indépendamment
 * de la table de stockage (scheduled_orders ou journeys). Exposé au
 * frontend pour une vue « Mes actions planifiées » unifiée.
 */
export interface PlannedActionRow {
    id: string;
    source: PlannedActionSource;
    strategy: PlannedActionStrategy;
    order_key: string;
    scope_type: string | null;
    scope_id: string | null;
    scheduled_at: string | null;
    estimated_arrival_at: string | null;
    status: PlannedActionStatus;
    error: string | null;
    created_at: string;
}
/**
 * PlannedActionService — Phase 16 (2026-04-22), unification U5 (soft).
 *
 * Façade unifiée au-dessus de :
 *   - `ScheduledOrderService` (ordres wizard programmés `at_time`)
 *   - `GangOrderService`      (ordres Journey exécutés `on_arrival`)
 *
 * Les 2 tables et leurs CRONs restent en place. Cette façade expose :
 *   - `listAllPending(playerId)`  — merge des 2 sources au format unifié
 *   - `schedule(...)`             — dispatch selon `strategy`
 *   - `cancel(actionId, source)`  — dispatch sur le bon service
 *
 * But : permettre à l'UI de proposer une vue unique sans casser les 2
 * systèmes existants qui ont chacun leur raison d'être (time-based vs
 * position-based).
 */
export declare class PlannedActionService {
    /**
     * Retourne toutes les actions planifiées pending/in_progress d'un joueur.
     * Format unifié pour le frontend (ordre chronologique croissant).
     */
    static listAllPending(playerId: string): Promise<PlannedActionRow[]>;
    /**
     * Programme une action. Si `strategy='at_time'`, passe par ScheduledOrderService.
     * Si `strategy='on_arrival'` + payload.gang_id + payload.order_params, passe par
     * GangOrderService (Journey-based).
     */
    static schedule(playerId: string, orderKey: string, input: WizardOrderInput, strategy: PlannedActionStrategy, scheduledAt?: Date): Promise<{
        id: string;
        source: PlannedActionSource;
        message: string;
    }>;
    /** Annule une action planifiée, dispatch sur le bon service selon source. */
    static cancel(playerId: string, actionId: string, source: PlannedActionSource): Promise<{
        success: boolean;
        message: string;
    }>;
}
//# sourceMappingURL=planned-action.service.d.ts.map