/** * HTML to Markdown Converter * * Converts rich text HTML from the message composer to markdown * for storage and transmission. * * Conversion rules: * - , → **text** * - , → _text_ * - , , → ~~text~~ * - text (HTML-style underline) * - (not in pre) → `text` * -
 → ```text```
 * - 
→ > text * - text → [text](url) * -
  1. → 1. text * -
    • → • text */ /** * Convert HTML string to markdown */ export declare function htmlToMarkdown(html: string): string; /** * Remove escape backslashes from markdown text before sending. * Preserves literal markdown characters that were escaped by the user. * * Rules: * - Single backslash before markdown character: remove backslash, keep character * - Even number of backslashes: keep half of them (they escape each other) * - Odd number of backslashes: keep (n-1)/2 backslashes, last one escapes the markdown char * * Examples: * - \* → * * - \\* → \* * - \\\* → \* * - \\\\* → \\* * * @param text - Markdown text that may contain escape sequences * @returns Text with escape backslashes removed */ export declare function removeEscapeBackslashes(text: string): string; /** * Clean up markdown output * - Remove excessive newlines * - Trim whitespace */ export declare function cleanMarkdown(markdown: string): string; /** * Convert HTML to clean markdown * Removes escape backslashes before sending (Requirement 12.2) */ export declare function convertHtmlToMarkdown(html: string): string;