import { Specialist, SpecialistRole } from '../models/Specialist';
import { SpecialistAttachment, SpecialistOwnerType } from '../models/SpecialistAttachment';
/**
 * Phase 17 (2026-05-04) — Fourchettes de tarif/jour selon le rôle.
 * Le joueur choisit son tarif dans la fourchette à l'embauche, stocké
 * dans SpecialistAttachment.chosen_daily_rate.
 *
 * • lawyer/accountant/informant : prix fixe selon skill (computeDaily)
 * • detective : [10 × skill, 20 × skill] — paye haute = bonus chance gros lot
 * • medic     : [80, 140] flat — soin identique quel que soit le tarif
 */
export declare class SpecialistService {
    /** @deprecated 2026-05-04 — utiliser getMaxPerOwnerRole(role) à la place. */
    static readonly MAX_PER_OWNER_ROLE = 3;
    static readonly MULTI_ATTACHMENT_DISCOUNT = 20;
    /** Phase 17 — limite max par owner selon le rôle (1 detective/medic, 3 sinon). */
    static getMaxPerOwnerRole(role: SpecialistRole): number;
    static computeMonthly(skill: number, role?: SpecialistRole): number;
    static computeDaily(skill: number, role?: SpecialistRole): number;
    /**
     * Phase 17 (2026-05-04) — Fourchette de tarif/jour [min, max] que
     * l'owner peut choisir lors de l'embauche, selon le rôle.
     */
    static getDailyRateRange(role: SpecialistRole, skillLevel: number): [number, number];
    static createNpc(data: {
        role: SpecialistRole;
        name: string;
        skill_level: number;
        bio?: string;
    }): Promise<Specialist>;
    static hire(ownerType: SpecialistOwnerType, ownerId: string, specialistId: string, chosenDailyRate?: number): Promise<SpecialistAttachment>;
    /**
     * Phase 17.2 (2026-05-05) — Résout les player_id à notifier selon scope :
     *   • player → [ownerId]
     *   • gang   → leader + bras_droit (humains)
     *   • cartel → tous CartelMember.is_admin (primary_player_id)
     * Mirror de DetectiveService.resolveNotifRecipients (factorisé ici pour
     * que les notifications spé en général puissent réutiliser).
     */
    private static resolveNotifRecipients;
    static fire(attachmentId: string): Promise<void>;
    /**
     * Phase 17 (2026-05-04) — Cron daily payment.
     *
     * Pour chaque attachment actif avec next_payment_due <= NOW :
     *   • Coût quotidien = chosen_daily_rate × (1 - discount_pct/100)
     *   • Tente débit shadow-first via PaymentService.debitMix
     *   • Si OK : update last_paid_at + next_payment_due += 24h
     *   • Si KO (fonds insuffisants) : is_active=false, inactive_reason=
     *     'unpaid', notif owner. Le détective ne fournira plus de rapport
     *     hebdo, le médecin ne soigne plus en passive, l'avocat/comptable/
     *     indic ne donne plus son coef.
     *
     * Idempotent : un attachment déjà payé aujourd'hui (next_payment_due
     * dans le futur) est skippé.
     */
    static processDailyPayments(): Promise<{
        paid: number;
        insolvent: number;
        total_debited: number;
    }>;
    static listForOwner(ownerType: SpecialistOwnerType, ownerId: string): Promise<{
        attachment_id: string;
        specialist_id: string;
        name: string;
        role: SpecialistRole;
        skill_level: number;
        salary_daily: number;
        discount_pct: number;
        effective_daily: number;
        hired_at: Date;
        last_paid_at: Date | null;
        next_payment_due: Date | null;
    }[]>;
    static listNpcPool(role: SpecialistRole, minSkill?: number, maxSkill?: number): Promise<Specialist[]>;
    /**
     * Calcule le facteur de réduction selon les spécialistes actifs rattachés.
     * Returns 0..1 (1 = full price/penalty, 0 = totally mitigated).
     */
    static getModifier(ownerType: SpecialistOwnerType, ownerId: string, role: SpecialistRole): Promise<number>;
    /** Réduction effective (0..1) cumulée pour un joueur (player + gang + cartel). */
    static getCombinedModifier(role: SpecialistRole, playerId: string, gangId: string | null, cartelId: string | null): Promise<number>;
    /** Payeur déduit des fonds de l'owner. Si pas assez, marque inactif. */
    static paySalaries(): Promise<{
        paid: number;
        defaulted: number;
        total_paid: number;
    }>;
    private static debitOwner;
    private static notifyOwner;
}
//# sourceMappingURL=specialist.service.d.ts.map