import { A as baseFormat, C as MarkdownComponents, E as ResolvedMarkdownComponents, F as RichTextRun, G as resolveTheme, H as DeepPartial, J as defaultTokenColors, K as CodeTokenColors, L as clearRichTextCache, M as flattenInline, N as RichText, O as defineMarkdownComponents, P as RichTextProps, R as measureInline, S as MarkdownComponentProps, T as MarkdownRenderContext, U as MarkdownTheme, W as defaultTheme, X as clearParseCache, Y as MarkdownParseOptions, Z as parseMarkdown, _ as InlineComponent, a as TableBlock, b as InlineTextOptions, d as CodeBlockHeader, f as CodeBlockProps, h as defaultComponents, j as composeFont, k as InlineFormat, m as renderMarkdown, n as profileFor, o as TableBlockProps, p as RenderMarkdownOptions, q as TokenType, r as registerLanguage, t as LanguageProfile, u as CodeBlock, v as InlineComponents, x as MarkdownComponent, y as InlineRenderContext } from "./languages-CQsF8n-V.mjs"; import { ReactElement, ReactNode } from "react"; import { BoxProps, Font, HStack, HStackProps, PrimitiveComponent, Text, TextProps, VStack, VStackProps, definePrimitive } from "@wingleeio/mugen"; import { Blockquote, Code, Heading, Html, Image, Link, List, ListItem, Paragraph, PhrasingContent, Root, RootContent, Table, TableCell, TableRow, ThematicBreak } from "mdast"; //#region src/markdown.d.ts interface MarkdownProps extends RenderMarkdownOptions { /** The markdown source to render. */ source: string; /** * Fade just-arrived text in as the source streams. The DOM still commits and * lays out instantly (heights stay exact); a veil over new characters * dissolves, which reads as a fade-in. Leaving it on for a settled block is * free. Honours `prefers-reduced-motion`. */ fade?: boolean; } /** * Render markdown as a tree of mugen primitives. * * `` is a **pure, hook-free** component: it parses `source` with * incremark and maps the AST to mugen primitives, producing the identical tree * in mugen's measure walk and in React's render. Drop it straight into a * `` `render` and every row — on- or off-screen — gets an exact, * analytic height. * * ```tsx * m.id} * render={(m) => } * /> * ``` * * Extend it with typed, per-node `components` (built from the same primitives) * and a deep-partial `theme`. */ declare function Markdown(props: MarkdownProps): ReactNode; declare namespace Markdown { var displayName: string; } //#endregion //#region src/primitives/fade.d.ts interface FadeMarkdownProps { /** The rendered markdown subtree to veil. */ children?: ReactNode; } /** * Wraps a measured markdown subtree with a streaming fade-in canvas. Its height * is exactly the subtree's height — the canvas overlay is out of flow and never * measured. */ declare const FadeMarkdown: (props: FadeMarkdownProps) => ReactElement; //#endregion export { type Blockquote, type BoxProps, type Code, CodeBlock, type CodeBlockHeader, type CodeBlockProps, type CodeTokenColors, type DeepPartial, FadeMarkdown, type Font, HStack, type HStackProps, type Heading, type Html, type Image, type InlineComponent, type InlineComponents, type InlineFormat, type InlineRenderContext, type InlineTextOptions, type LanguageProfile, type Link, type List, type ListItem, Markdown, type MarkdownComponent, type MarkdownComponentProps, type MarkdownComponents, type MarkdownParseOptions, type MarkdownProps, type MarkdownRenderContext, type MarkdownTheme, type Paragraph, type PhrasingContent, type PrimitiveComponent, type RenderMarkdownOptions, type ResolvedMarkdownComponents, RichText, type RichTextProps, type RichTextRun, type Root, type RootContent, type Table, TableBlock, type TableBlockProps, type TableCell, type TableRow, Text, type TextProps, type ThematicBreak, type TokenType, VStack, type VStackProps, baseFormat, clearParseCache, clearRichTextCache, composeFont, defaultComponents, defaultTheme, defaultTokenColors, defineMarkdownComponents, definePrimitive, flattenInline, measureInline, parseMarkdown, profileFor, registerLanguage, renderMarkdown, resolveTheme };