Initial commit

This commit is contained in:
Joe
2026-06-26 14:12:10 +02:00
commit 12518b259c
5258 changed files with 732924 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
declare function long2ip(long: number): string;
declare function ip2long(ip: string): number;
declare class Netmask4Impl {
maskLong: number;
bitmask: number;
netLong: number;
size: number;
base: string;
mask: string;
hostmask: string;
first: string;
last: string;
broadcast: string | undefined;
constructor(net: string, mask?: string | number);
contains(ip: string | Netmask4Impl): boolean;
next(count?: number): Netmask4Impl;
forEach(fn: (ip: string, long: number, index: number) => void): void;
toString(): string;
}
export { ip2long, long2ip, Netmask4Impl };