/** * URL utility functions for provider management */ /** * Normalize a provider URL to ensure it has a valid protocol * Supports both http:// and https:// protocols * * @param url - URL to normalize (can be with or without protocol) * @param preferHttps - If true, prefer HTTPS when protocol is missing (default: false) * @returns Normalized URL with protocol, or null if invalid */ export declare function normalizeProviderUrl(url: string | null | undefined, preferHttps?: boolean): string | null; /** * Get both HTTP and HTTPS variants of a URL * Useful for trying both protocols when one fails * * @param url - Base URL (with or without protocol) * @returns Object with httpUrl and httpsUrl, or null if URL is invalid */ export declare function getProtocolVariants(url: string | null | undefined): { httpUrl: string; httpsUrl: string; } | null; /** * Try to determine the working protocol for a URL * Attempts both HTTP and HTTPS and returns the one that works * * @param baseUrl - Base URL without protocol or with one protocol * @param testPath - Optional path to test (default: '/') * @param timeout - Timeout in milliseconds (default: 5000) * @returns The working protocol ('http' or 'https') or null if neither works */ export declare function detectWorkingProtocol(baseUrl: string, testPath?: string, timeout?: number): Promise<'http' | 'https' | null>; //# sourceMappingURL=url.d.ts.map