/** * Trim an address and strip the IPv4-mapped IPv6 prefix (`::ffff:`) so that * mapped addresses are compared as plain IPv4. */ export declare function normalizeAddress(address?: string): string | undefined; /** * Convert a dotted-quad IPv4 address into its unsigned 32-bit integer value. */ export declare function parseIPv4(address: string): number | undefined; /** * Whether an IPv4 `address` falls inside the `range`/`prefix` CIDR block. */ export declare function isIPv4InCIDR(address: string, range: string, prefix: number): boolean; /** * Whether `address` is allowed by the provided `cidr` whitelist. An empty or * missing whitelist allows every address; an unparseable address is rejected. */ export declare function isAddressAllowed(address: string | undefined, cidr: string[] | undefined): boolean;