/** * Markdown to Notion Blocks Converter * Converts markdown text to Notion block format * Supports: headings, paragraphs, lists, code, quotes, dividers, * tables, toggles, callouts, images, bookmarks, embeds, * equations, columns, table of contents, breadcrumb */ export interface NotionBlock { object: 'block'; type: string; [key: string]: any; } export interface RichText { type: 'text' | 'mention'; text: { content: string; link?: { url: string; } | null; }; mention?: { page?: { id: string; }; database?: { id: string; }; [key: string]: any; }; annotations: { bold: boolean; italic: boolean; strikethrough: boolean; underline: boolean; code: boolean; color: string; }; plain_text?: string; href?: string | null; } export declare function markdownToBlocks(markdown: string): NotionBlock[]; export declare function blocksToMarkdown(blocks: NotionBlock[]): string; /** * Parse inline markdown formatting to rich text * Supports: bold, italic, code, strikethrough, links, mentions, colors */ export declare function parseRichText(text: string): RichText[]; /** * Extract plain text from rich text * Optimized string accumulation avoids creating intermediate arrays * and reduces garbage collection pressure in hot paths. */ export declare function extractPlainText(richText: RichText[]): string; //# sourceMappingURL=markdown.d.ts.map