/**
* HTML utility functions for safe rendering
* Copyright (c) 2026 Mihajlo Stojanovski
*
* @module report/html-utils
*/
/**
* Escape HTML special characters to prevent XSS vulnerabilities.
*
* @param text - Raw text to escape
* @returns HTML-safe escaped text
*/
export declare function escapeHtml(text: string): string;
/**
* Serialize a value to JSON that is safe for embedding inside a which would
* terminate the enclosing script block mid-document. The five substitutions
* below prevent that while keeping the output valid JSON — the browser's
* JSON.parse handles these Unicode escapes transparently.
*
* @param value - Any JSON-serialisable value
* @returns A string safe to place between
*/
export declare function safeJsonForScript(value: unknown): string;
/**
* Get an emoji icon for an attachment based on its type.
*
* @param name - Attachment filename
* @param contentType - MIME type of the attachment
* @returns Emoji representing the attachment type
*/
export declare function getAttachmentIcon(name: string, contentType: string): string;
/**
* Get a CSS class for an attachment based on its type.
*
* @param name - Attachment filename
* @param contentType - MIME type of the attachment
* @returns CSS class name for styling
*/
export declare function getAttachmentClass(name: string, contentType: string): string;
//# sourceMappingURL=html-utils.d.ts.map