import { Theme, ThemeName } from "markdansi"; //#region src/MarkdownText.d.ts export type MarkdownTextProps = { /** The markdown text to render. */ text: string; /** * Syntax highlighting hook. Receives raw code and optional language, * must return ANSI-colored text. Must not add or remove newlines. */ highlighter?: (code: string, lang?: string) => string; /** markdansi theme name or custom theme object. */ theme?: ThemeName | Theme; /** Terminal width for wrapping (default: stdout.columns or 80). */ width?: number; /** Enable word wrapping (default: true). */ wrap?: boolean; /** Draw border around fenced code blocks (default: true). */ codeBox?: boolean; /** Show line numbers in code blocks (default: false). */ codeGutter?: boolean; /** Wrap long lines in code blocks (default: true). */ codeWrap?: boolean; /** Enable OSC 8 hyperlinks (default: auto-detect). */ hyperlinks?: boolean; /** Enable ANSI colors (default: auto-detect). */ color?: boolean; /** Table border style. */ tableBorder?: "unicode" | "ascii" | "none"; /** Table cell padding. */ tablePadding?: number; /** Dense table rendering. */ tableDense?: boolean; /** Truncate table cells to fit column width (default: true). */ tableTruncate?: boolean; /** Ellipsis text for table cell truncation (default: "…"). */ tableEllipsis?: string; /** Blockquote prefix (default: "\u2502 "). */ quotePrefix?: string; /** List indentation (default: 2). */ listIndent?: number; }; /** * Renders markdown text as formatted ANSI terminal output using markdansi. * * Renders the full text via markdansi's one-shot `render()`; memoized so * re-renders with unchanged props skip the re-parse. A stdout resize * subscription feeds the live terminal width into the render, so memoized * output still re-wraps when the terminal is resized. This is fast enough for * typical LLM output sizes (microseconds) and avoids the complexity of * incremental streaming state in React's rendering model. */ export declare const MarkdownText: import("react").MemoExoticComponent<{ ({ text, ...options }: MarkdownTextProps): import("react").JSX.Element; displayName: string; }>; //#endregion //# sourceMappingURL=MarkdownText.d.ts.map