/** * HTML-to-text conversion for email bodies. * * Most mail arrives as HTML — 165 of 169 messages in one real mailbox were * single-part `text/html` — so this runs on nearly every body the server * returns, and undecoded entities show up directly in what the model reads. */ /** * Decode HTML character references. * * Single pass by design: decoding repeatedly would turn the literal text * `&lt;` into `<`, when it means the four characters `<`. */ export declare function decodeEntities(text: string): string; /** * Convert an HTML body to readable plain text. * * Structure survives as text conventions — markdown links, "> " quote * prefixes, numbered lists, pipe-separated table cells — and everything else * is dropped. Entities are decoded before padding is removed, since the * padding usually arrives entity-encoded — and after tags are gone, so an * entity-encoded angle bracket can never be mistaken for markup. */ export declare function stripHtml(html: string): string; //# sourceMappingURL=html.d.ts.map