/**
* Escapes HTML special characters for safe text content.
*/
export declare function escapeHtml(text: string): string;
/**
* Escapes a string for safe use in an HTML attribute (e.g. href).
*/
export declare function escapeAttr(value: string): string;
/**
* Returns true if the string looks like it contains HTML (e.g. from markdown link conversion).
*/
export declare function looksLikeHtml(str: string): boolean;
/** Class and cursor for subtitle/title links; full styling from theme via list item CSS (inbox.list.item.subtitleLink). */
export declare const LINK_ATTRS = " class=\"courier-inbox-subtitle-link\" style=\"cursor: pointer;\"";
/**
* Sanitizes HTML for safe display in the inbox. Allows tags with http(s) href plus the
* inline formatting tags the preview markdown renderer produces.
* Normalizes malformed preview HTML first (e.g. markdown in href, target="+blank").
* All other tags are stripped; their content is preserved as escaped text.
*/
export declare function sanitizeHtmlForInbox(html: string): string;