1 | import { Reader, Response } from 'mmdb-lib';
|
2 | type Callback = () => void;
|
3 | export interface OpenOpts {
|
4 | cache?: {
|
5 | max: number;
|
6 | };
|
7 | watchForUpdates?: boolean;
|
8 | watchForUpdatesNonPersistent?: boolean;
|
9 | watchForUpdatesHook?: Callback;
|
10 | }
|
11 | export declare const open: <T extends Response>(filepath: string, opts?: OpenOpts, cb?: Callback) => Promise<Reader<T>>;
|
12 | export declare const openSync: () => never;
|
13 | export declare const init: () => never;
|
14 | export declare const validate: (ip: string) => boolean;
|
15 | export * from 'mmdb-lib';
|
16 | declare const _default: {
|
17 | init: () => never;
|
18 | open: <T extends Response>(filepath: string, opts?: OpenOpts, cb?: Callback) => Promise<Reader<T>>;
|
19 | openSync: () => never;
|
20 | validate: (ip: string) => boolean;
|
21 | };
|
22 | export default _default;
|
23 | export { Reader };
|