/** * The inline grammar for `Markdown`: locating code spans, links, images, strong * and emphasis runs, and resolving them to escaped React nodes. A single * forward-only cursor keeps the pass linear; a link is admitted only when * `safeHttpUrl` accepts it, and an image contributes its `alt` text alone. */ import type { ReactNode } from 'react'; /** * Resolves inline markup to React nodes. A cursor walks the text once; each rule * caches its earliest match at or after the cursor and is rescanned only when the * cursor passes that match, so the rules' rescans cover disjoint forward ranges * and the pass is linear. Plain runs are pushed as text children that React * escapes; a link is admitted only when `safeHttpUrl` accepts it, and an image * contributes its `alt` text alone. */ export declare function renderInline(text: string, keyBase: string): ReactNode[]; /** * Test-only entry point to the inline scanner. Resolves inline markup to React * nodes exactly as `renderInline` does, but without mounting or serializing a * DOM, so a test can time the scan itself in isolation from render cost. Not part * of the public API. */ export declare function scanInline(text: string): ReactNode[]; //# sourceMappingURL=markdown-inline.d.ts.map