export declare class SsrfBlockedError extends Error { code: string; constructor(message: string); } /** * If `ip` is an IPv4-mapped IPv6 address (`::ffff:0:0/96`), returns the * embedded IPv4 in dotted form. Otherwise returns undefined. * * Examples: * - `::ffff:1.2.3.4` -> `'1.2.3.4'` * - `::ffff:a9fe:a9fe` -> `'169.254.169.254'` * - `::1` -> `undefined` */ export declare function extractMappedIpv4(ip: string): string | undefined; /** * True if `ip` (a literal IPv4/IPv6 string) is in a range unsafe to reach. Non-IP input is * treated as blocked (fail closed). Handles IPv4-mapped IPv6 by checking the embedded IPv4. */ export declare function isBlockedIp(ip: string): boolean; /** True if `ip` (a literal IPv4/IPv6 string) is a loopback address. Non-IP input returns false. */ export declare function isLoopback(ip: string): boolean; //# sourceMappingURL=ssrf-blocklist.d.ts.map