/** * The 16 bytes of an IPv6 address in any text form (`::`, upper case, leading * zeros, an IPv4 tail such as `::ffff:1.2.3.4`), or null when the text is not * an IPv6 address. A zone id (`%eth0`) is ignored. */ export declare function ipv6Bytes(address: string): number[] | null; /** * The IPv4 address inside an IPv6 address that stands for one, or null. Three * kinds stand for an IPv4 address: * * - IPv4-mapped, `::ffff:7f00:1` or `::ffff:127.0.0.1`; * - NAT64 with the well-known prefix, `64:ff9b::/96`, where the last 32 bits * are the IPv4 address (a gateway on an IPv6-only network forwards it); * - 6to4, `2002::/16`, where the 32 bits after the prefix are the IPv4 address. * * Without this, `http://[64:ff9b::7f00:1]/` would slip past an IPv4-only * rule. A NAT64 prefix that an operator chose for their own network * (RFC 6052) cannot be recognized. */ export declare function embeddedIPv4(address: string): string | null; /** * True when `address` must not be contacted. An IPv6 address that stands for an * IPv4 address is judged by that IPv4 address, so the ranges are not blocked * whole: on an IPv6-only network with DNS64 every IPv4-only host resolves into * `64:ff9b::/96`. Anything that is not a valid IP literal is refused too (fail * closed): callers pass resolved addresses. */ export declare function isBlockedAddress(address: string): boolean;