import type { Mapping } from "./types.js"; /** * Encode all visible text in an HTML document. Skips: * - Anything inside SKIP_TAGS (script/style/code/pre/textarea/svg/math/noscript). * - HTML attribute values (preserved by virtue of only encoding text segments * between tags, never the tag interior). * - HTML comments (the `` syntax matches as a "tag" so its * contents are not in a text segment). * * Tag structure is preserved exactly. */ export declare function encodeHtml(html: string, mapping: Mapping): string; /** * Decode an HTML document. Same operation as encode (mapping is bidirectional) * but exposed separately for call-site clarity. */ export declare function decodeHtml(html: string, mapping: Mapping): string; //# sourceMappingURL=html.d.ts.map