/** * Assistant text as GitHub-flavored markdown (the `.fl-md` design). react-markdown * escapes raw HTML by default (no rehype-raw), so no markup is injected — safe for * model-authored text. * * ENG-218 — solidity under extreme content: * - `memo`: a growing streamed turn re-renders the WHOLE list on every token. * Memoizing means only the block whose `text` actually changed re-parses; * every settled turn above it is skipped instead of re-parsing per token * (the O(thread²) markdown cost the issue calls out). * - restored huge bodies bound their parse/DOM cost: structured ones fold into * sections (8D), unstructured ones truncate under the 3D fade-fold. Only * restored bodies collapse — a message the reader just watched stream in * must not snap shut — and never while streaming. */ declare function MarkdownImpl({ text: liveText, streaming, restored }: { text: string; streaming?: boolean; restored?: boolean; }): import("react").JSX.Element; export declare const Markdown: import("react").MemoExoticComponent; export {};