import { Reader } from 'mmdb-lib'; import { CityResponse } from 'maxmind'; import { Response } from 'mmdb-lib/lib/reader/response'; import { IMaxMindOptions, TEdition } from './interfaces'; export declare const MILLIS_IN_HOUR = 3600000; export declare const MAX_ITEMS_IN_CACHE_DEFAULT = 6000; export declare const rootDir: string; export declare const DB_DIR_DEFAULT = "./maxmind-db"; export declare const getDbDir: (dbDir?: string) => string; export declare const getDbName: (edition?: TEdition) => string; export declare const getDbPath: (options: IMaxMindOptions) => string; export declare const getPermanentLink: (options: IMaxMindOptions, isSha?: boolean) => string; /** * Возвращает метку времени в часах */ export declare const getDbRevision: (reader: Reader | undefined) => number; export declare const revisionDate: (revision: number) => string; export declare const revisionString: (revision: number) => string; /** * Возвращает метку времени в часах */ export declare const getLastDbRevision: (options: IMaxMindOptions) => Promise; export declare const getReader: (options: IMaxMindOptions) => Promise>; export declare const downloadCityDb: (options: IMaxMindOptions) => Promise; //# sourceMappingURL=geo-ip-utils.d.ts.map