export type FeishuPostInlineItem = { tag: 'text'; text: string; style?: string[]; } | { tag: 'at'; user_id: string; style?: string[]; } | { tag: 'a'; text: string; href: string; } | { tag: 'code_block'; language: string; text: string; }; export type FeishuPostParagraph = FeishuPostInlineItem[]; export interface FeishuPostContent { zh_cn: { title: string; content: FeishuPostParagraph[]; }; } /** * Converts a Markdown string to Feishu's "post" rich-text format. * * Supported constructs: * - Fenced code blocks (``` … ```) * - Headings (# / ## / ###) → bold text paragraph * - Bullet lists (- / *) * - Numbered lists (1. / 2. …) * - Inline bold, italic, inline-code, links * - Empty lines → empty paragraph separator */ export declare function markdownToFeishuPost(text: string): FeishuPostContent; //# sourceMappingURL=markdown-to-feishu-post.d.ts.map