/**
 * GameSettingsService — resolves game constants with admin override capability.
 *
 * Pattern:
 *   const price = await GameSettingsService.get('weapon.ak47.price', WEAPONS.find(w => w.id === 'ak47')!.price);
 *
 * If a GameSetting with key 'weapon.ak47.price' exists, its JSON-parsed value is returned.
 * Otherwise, the hardcoded fallback is returned.
 *
 * Uses an in-memory cache refreshed every 60 seconds to avoid DB hits on every read.
 */
export declare class GameSettingsService {
    private static cache;
    private static lastRefresh;
    private static readonly TTL_MS;
    /**
     * Refresh the in-memory cache from database.
     */
    static refresh(): Promise<void>;
    /**
     * Ensure cache is fresh (auto-refresh if TTL expired).
     */
    private static ensureFresh;
    /**
     * Get a setting value with fallback to hardcoded default.
     *
     * @param key     - Setting key (e.g. 'police.rules.points_per_crime')
     * @param fallback - Default value if no admin override exists
     * @returns The admin-overridden value or the fallback
     */
    static get<T>(key: string, fallback: T): Promise<T>;
    /**
     * Get multiple settings at once, returning a merged object.
     *
     * @param prefix   - Key prefix (e.g. 'police.rules')
     * @param defaults - Object with default values
     * @returns Merged object where admin overrides take precedence
     */
    static getGroup<T extends Record<string, unknown>>(prefix: string, defaults: T): Promise<T>;
    /**
     * Synchronous getter (uses cached values only, no DB hit).
     * Call refresh() at startup or periodically to keep cache populated.
     */
    static getCached<T>(key: string, fallback: T): T;
    /**
     * Bulk seed: inserts default settings if they don't exist.
     * Safe to call multiple times (idempotent).
     */
    static seedDefaults(entries: Array<{
        key: string;
        value: unknown;
        description?: string;
        category?: string;
        is_public?: boolean;
    }>): Promise<number>;
    /**
     * Phase 17 (2026-05-04) — Persist une valeur (upsert atomique).
     * Utilisé notamment par le helper cron daily pour tracker le dernier
     * run par jour Paris (catch-up robuste aux PM2 reloads).
     */
    static set(key: string, value: unknown, options?: {
        description?: string;
        category?: string;
        is_public?: boolean;
    }): Promise<void>;
}
//# sourceMappingURL=game-settings.service.d.ts.map