/** * Escape a primitive value for safe inclusion in serialized HTML. * * Behavior: * - Accepts only Hson primitives (string | number | boolean | null). * - Throws if a non-primitive value is provided, since structured values * should never reach HTML text serialization directly. * - Non-string primitives are stringified without escaping. * - Strings are HTML-escaped to neutralize markup-significant characters. * * Escapes: * - `&` → `&` * - `<` → `<` * - `>` → `>` * - `"` → `"` * - `'` → `'` * * Intended use: * - Final safety pass before emitting raw HTML text nodes or attribute values * that are not already known to be safe. * - Not for escaping inside structured DOM APIs (which handle this themselves). * * @param str - A primitive value to escape for HTML output. * @returns The escaped string representation. * @throws If `str` is not a primitive value. */ export declare function escape_html_text(str: any): string; //# sourceMappingURL=escape-html.d.ts.map