export type InlineNode = { type: 'text'; value: string; } | { type: 'strong'; children: InlineNode[]; } | { type: 'em'; children: InlineNode[]; } | { type: 'del'; children: InlineNode[]; } | { type: 'code'; value: string; } | { type: 'link'; href: string; title?: string; children: InlineNode[]; } | { type: 'image'; src: string; alt: string; title?: string; } | { type: 'break'; }; export type BlockNode = { type: 'heading'; depth: 1 | 2 | 3 | 4 | 5 | 6; children: InlineNode[]; } | { type: 'paragraph'; children: InlineNode[]; } | { type: 'blockquote'; children: BlockNode[]; } | { type: 'list'; ordered: boolean; start?: number; tight: boolean; items: ListItem[]; } | { type: 'code'; lang?: string; value: string; } | { type: 'hr'; } | { type: 'table'; header: TableCell[]; align: (TableAlign | null)[]; rows: TableCell[][]; }; export type TableAlign = 'left' | 'center' | 'right'; export type TableCell = InlineNode[]; export interface ListItem { checked?: boolean | null; children: BlockNode[]; } export interface ParsedMarkdown { blocks: BlockNode[]; } export declare function parseMarkdown(src: string): ParsedMarkdown; export declare function parseInline(src: string): InlineNode[];