import DataLoader from 'dataloader';
import { DBProvider } from '../../app-providers/db.provider.js';
import type { IGetAllCountriesResult } from '../types.js';
export declare class CountriesProvider {
    private dbProvider;
    cache: {
        get: <T>(key: import("node-cache").Key) => T | undefined;
        set: {
            <T>(key: import("node-cache").Key, value: T, ttl: number | string): boolean;
            <T>(key: import("node-cache").Key, value: T): boolean;
        };
        delete: (keys: import("node-cache").Key | import("node-cache").Key[]) => number;
        clear: () => void;
    };
    constructor(dbProvider: DBProvider);
    getAllCountries(): Promise<IGetAllCountriesResult[]>;
    private batchCountryByCode;
    getCountryByCodeLoader: DataLoader<string, IGetAllCountriesResult | undefined, import("node-cache").Key | import("node-cache").Key[]>;
    clearCache(): void;
}
