import { type Result } from "../utils/result.ts"; /** * Validate a URL to protect against Server-Side Request Forgery (SSRF) attacks. * * Rejects: * - Non-http/https protocols (file://, ftp://, data:, javascript:, etc.) * - Private IP addresses (RFC 1918, loopback, link-local) * - Internal hostnames (localhost, *.local, *.internal) * * @param url - The URL to validate. * @returns `ok()` if the URL is safe, or `err(reason)` describing why the URL was rejected. */ export declare function validateUrl(url: string): Result; //# sourceMappingURL=ssrf-guard.d.ts.map