1 | declare function isIP(addr: string): boolean;
|
2 | declare function version(addr: string): number;
|
3 | declare function isV4(addr: string): boolean;
|
4 | declare function isV6(addr: string): boolean;
|
5 | declare function isRange(range: string): boolean;
|
6 | declare function inRange(addr: string, range: string | string[]): boolean;
|
7 | declare function isPrivateIP(ip: string): boolean;
|
8 | declare function isIPInRangeOrPrivate(ip: string, options?: {
|
9 | ranges?: string[] | string;
|
10 | allowAnyPrivate?: boolean;
|
11 | }): boolean;
|
12 | declare function storeIP(addr: string): any;
|
13 |
|
14 | declare function displayIP(addr: string): any;
|
15 |
|
16 | export { displayIP, inRange, isIP, isIPInRangeOrPrivate, isPrivateIP, isRange, isV4, isV6, storeIP as searchIP, storeIP, version };
|