import type { TransactionCategory } from '../models/PlayerTransaction';
export type PaymentOwnerType = 'player' | 'gang' | 'cartel';
export interface DebitMixInput {
    ownerType: PaymentOwnerType;
    ownerId: string;
    amount: number;
    /** Categorie pour le log transaction (player only — gang/cartel: pas de log auto). */
    category?: TransactionCategory;
    /** Description pour le log transaction. */
    description?: string;
}
export interface DebitMixResult {
    ok: boolean;
    from_shadow: number;
    from_light: number;
    /** Solde restant après débit (pour info uniquement). */
    remaining_shadow: number;
    remaining_light: number;
}
export declare class PaymentService {
    /**
     * Débit mixte shadow-first sur player/gang/cartel.
     * Atomique via QueryBuilder UPDATE avec GREATEST(0, ...).
     *
     * Retour `{ok: false, from_shadow:0, from_light:0}` si fonds insuffisants
     * (shadow + light < amount). Aucune mutation DB dans ce cas.
     */
    static debitMix(input: DebitMixInput): Promise<DebitMixResult>;
    /**
     * Crédit shadow ou light sur player/gang/cartel.
     * Atomique via QueryBuilder UPDATE.
     */
    static credit(input: {
        ownerType: PaymentOwnerType;
        ownerId: string;
        amount: number;
        currency: 'shadow' | 'light';
    }): Promise<boolean>;
    /**
     * Vérifie si l'owner a au moins `amount` (shadow + light). Read-only,
     * pas de mutation. Utilisé pour gating UI (ex: bouton grisé si pas assez
     * pour payer le carburant).
     */
    static canAfford(ownerType: PaymentOwnerType, ownerId: string, amount: number): Promise<boolean>;
}
//# sourceMappingURL=payment.service.d.ts.map