/** * Utility class for sanitizing HTML content to prevent XSS attacks. * Provides safe HTML sanitization while maintaining allowed elements and attributes. * * @example * ```typescript * const html = '
Hello World!
'; * const sanitized = HtmlSanitizer.sanitize(html); * // Result:
Hello World!
* ``` */ export declare class HtmlSanitizer { /** * Private constructor to prevent instantiation. * @static */ private constructor(); /** * Sanitizes HTML content by removing potentially dangerous elements and attributes * while preserving safe HTML elements and styling. * * @param html - The HTML string to sanitize * @returns A sanitized HTML string with safe elements and attributes * @throws Error if html is null, undefined, or not a string * * @example * ```typescript * const html = ` *
*

Hello World

*

This is bold text with a link

* Example *
* `; * const sanitized = HtmlSanitizer.sanitize(html); * ``` */ static sanitize(html: string): string; /** * Creates the sanitization options for the HTML sanitizer. * Configures allowed tags, attributes, and URL schemes. * * @private * @returns Sanitization options object */ private static _createOptions; } //# sourceMappingURL=html-sanitizer.d.ts.map