import { PoiBribe } from '../models/PoiBribe';
import { type PoiBribeTier } from '../constants/poi-bribes';
import type { PoiBribeKind } from '../models/PoiBribe';
export interface BribeContext {
    poi_id: string;
    poi_kind: PoiBribeKind;
    tier: number;
    is_recurring: boolean;
}
export interface BribeResult {
    bribe_id: string;
    amount_paid: number;
    heat_applied: number;
    granted_items: Array<{
        item_subtype: string;
        quantity: number;
    }>;
    released_gang_members: string[];
    is_recurring: boolean;
    next_payment_at: string | null;
}
export declare class PoiBribeService {
    /**
     * Décrit les options disponibles pour un POI donné.
     * Utilisé par le frontend pour générer la liste déroulante crescendo.
     */
    static describeOptions(poiId: string): Promise<{
        poi_kind: PoiBribeKind;
        tiers: PoiBribeTier[];
    } | null>;
    /**
     * Effectue le paiement et applique les effets.
     *
     * Cap : 1×/joueur/POI/jour vérifié avant le débit.
     */
    static bribe(playerId: string, ctx: BribeContext): Promise<BribeResult>;
    /** Annule un bribe récurrent (ne fait rien si déjà inactif). */
    static cancel(playerId: string, bribeId: string): Promise<void>;
    /** Liste les bribes actifs/historique d'un joueur (UI panneau « Mes arrangements »). */
    static listForPlayer(playerId: string): Promise<PoiBribe[]>;
    /**
     * CRON — process all due recurring bribes. Appelé toutes les 5 minutes.
     * Pour chaque bribe actif récurrent dont next_payment_at <= now :
     *   - Si fonds suffisants : débit + heat + grants + reschedule next
     *   - Sinon : cancel auto status='insufficient_funds' + notif
     */
    static processDue(): Promise<{
        processed: number;
        cancelled_insuf: number;
    }>;
}
//# sourceMappingURL=poi-bribe.service.d.ts.map