import { AiSourceItem } from '../../ai-elements/src/types'; import { StreamPart } from './types'; export interface ParseOptions { /** * The source is still producing: a half-written construct at the end is * closed first (`completeInlineMarkup`), so `**bold` never flashes its * asterisks. Settled content is parsed exactly as written. */ streaming?: boolean; /** Resolves `[n]` in text: `sources[n - 1]`. */ sources?: readonly AiSourceItem[]; } /** * Markdown into the parts a `TxStreamElement` renders. Headings, paragraphs, * emphasis, inline code, links, lists (nested, task), quotes, rules and fenced * code become native parts; tables, math, mermaid, raw HTML and images go, * with their delegated neighbours, into one `markdown` part. */ export declare function parseStreamMarkdown(content: string, options?: ParseOptions): StreamPart[];