/** * Shared markdown transform primitives. * * These transforms are the common subset used by both WhatsApp and Telegram * formatters. Each transport applies additional platform-specific rules on top. */ /** * Apply the 8 shared block-level and inline markdown transforms. * * Transform order: * 1. Headings → bold uppercase (using placeholder to protect from italic pass) * 2. Horizontal rules → em dashes * 3. Blockquotes → left bar * 4. Checkboxes → unicode checkboxes * 5. Unordered lists → bullet points * 6. Bold **text** → placeholder-wrapped * 7. Italic *text* → _text_ * 8. Replace bold placeholders with target bold marker * * @param text - Input markdown text * @param boldMarker - The bold delimiter for the target platform ("*" for WhatsApp, "" for Telegram) * @param boldEndMarker - The closing bold delimiter ("*" for WhatsApp, "" for Telegram) * @param italicMarker - The italic delimiter ("_" for WhatsApp, "" for Telegram) * @param italicEndMarker - The closing italic delimiter ("_" for WhatsApp, "" for Telegram) */ export declare function applySharedMarkdownTransforms(text: string, boldMarker: string, boldEndMarker: string, italicMarker: string, italicEndMarker: string): string; /** * Strip all markdown formatting, leaving plain conversational text for TTS. * TTS engines read asterisks, backticks, etc. literally — this removes them. */ export declare function stripMarkdown(text: string): string; /** * WhatsApp markdown formatter. * Uses * for bold, _ for italic. */ export declare function markdownToWhatsApp(text: string): string; //# sourceMappingURL=markdown.d.ts.map