/** * Configuration for URL validation * @public */ export interface UrlValidationConfig { /** Whether to allow localhost and private IPs (useful for development) */ allowLocalhost?: boolean; /** Additional ports to allow beyond the default 80, 443 */ allowedPorts?: string[]; } /** * Validates if a URL string is safe * @param url - The URL string to validate * @param config - Validation configuration * @returns true if the URL is safe, false if it contains malicious content * @public */ export declare function validateUrl(url: string, config?: UrlValidationConfig): boolean; /** * Validates if a URL instance is safe * @param url - The URL instance to validate * @param config - Validation configuration * @returns true if the URL is safe, false otherwise * @public */ export declare function validateUrlInstance(url: URL, config?: UrlValidationConfig): boolean; //# sourceMappingURL=url-validation.d.ts.map