import { SafeUrl } from '../../types'; interface UrlValidationOptions { httpsOnly?: boolean; } export declare function validateRawUrlInput(url: unknown): string; /** Resolve caller or page-provided URL text against a page URL and allow HTTP(S) only. */ export declare function resolveHttpUrl(value: unknown, baseUrl: string): string | undefined; /** Build the conventional root favicon URL without dropping a non-default port. */ export declare function getDefaultFaviconUrl(pageUrl: string): string; /** Remove only the conventional leading www. host label. */ export declare function stripLeadingWww(hostname: string): string; /** * Comprehensive URL validation with security checks. */ export declare function validateUrlInput(url: string, options?: UrlValidationOptions): string; /** * Validate image URL with additional security checks. */ export declare function validateImageUrl(imageUrl: string): string; /** * Validate and sanitize URL. */ export declare function sanitizeUrl(url: string): SafeUrl; export {};