/** * Formats a duration in milliseconds as a human-readable string. The format varies based on duration length: * - Less than 60 seconds: "17s" * - Less than 1 hour: "6m 39s" * - 1 hour or more: "1h 23m" * @param ms - Duration in milliseconds. * @returns Formatted duration string. */ export declare function formatDuration(ms: number): string; /** * Formats a Unix millisecond timestamp as a human-readable relative time string (e.g., "2 minutes ago", "3 hours ago", "5 days ago"). Used for health indicator * tooltips where absolute timestamps would be harder to interpret at a glance. * @param timestamp - Unix millisecond timestamp. * @returns Relative time string. */ export declare function formatTimeAgo(timestamp: number): string; /** * Extracts a concise domain from a URL by keeping only the last two portions of the hostname (e.g., "watch.foodnetwork.com" becomes "foodnetwork.com", * "www.hulu.com" becomes "hulu.com"). Used as a standard domain key for DOMAIN_CONFIG lookups and as a display fallback when no provider name is configured. * @param url - The URL to extract the domain from. * @returns The concise domain, or the original URL if parsing fails. */ export declare function extractDomain(url: string): string;