/**
* HTML escaping utilities to prevent XSS in tooltip HTML generation.
*
* All data from external API responses must be escaped before interpolation
* into HTML template strings.
*/
/**
* Escape a string for safe insertion into HTML content or attribute values.
* Returns an empty string if the input is nullish.
*/
export declare const escapeHtml: (str: unknown) => string;
/**
* Sanitize a URL for safe use in href attributes.
* Only allows http:, https:, and mailto: protocols.
* Uses the browser's URL parser to reliably detect the protocol,
* avoiding edge cases that string-matching can miss.
* Returns an empty string for dangerous protocols (javascript:, data:, etc).
*/
export declare const sanitizeUrl: (url: unknown) => string;