import type React from 'react'; export interface InlineToken { text: string; bold?: boolean | undefined; italic?: boolean | undefined; code?: boolean | undefined; strike?: boolean | undefined; /** Markdown link target (the URL part of [text](url)). */ link?: boolean | undefined; } export declare function parseInline(text: string): InlineToken[]; /** * Render assistant prose with markdown emphasis + block formatting. Tables are * routed through the existing box-drawing renderer; everything else is parsed * line-by-line. * * `contentWidth` is the real inner width of the panel that wraps this view * (the assistant entry's left-border + paddingLeft). When provided, tables * are sized against it so they don't overflow the panel; otherwise we fall * back to `termWidth`, which is correct for callers without a bordered * container. Non-table prose is unaffected — Ink handles its soft wrap. * * `tableWidth` is the width available for tables. When provided, tables are * sized to this value; otherwise falls back to `contentWidth ?? termWidth`. * This allows precise control over table sizing independent of prose width. * * `panelBackground` is the background color of the surrounding panel. When * provided, table rows are padded with trailing spaces colored with this * background so any empty space on the right of a narrow table is filled * with the panel background rather than showing the terminal background. */ declare function MarkdownViewImpl({ text, termWidth, contentWidth, tableWidth, }: { text: string; termWidth: number; /** Real inner width of the surrounding panel. Defaults to `termWidth`. */ contentWidth?: number | undefined; /** Width available for tables. Defaults to `contentWidth ?? termWidth`. */ tableWidth?: number | undefined; }): React.ReactElement; /** * Markdown renderer. * * Memoized: re-parsing prose on every streamed chunk was the bulk of the * per-frame cost for long answers. Only the segment whose text changed is * re-parsed now. */ export declare const MarkdownView: React.MemoExoticComponent; export {}; //# sourceMappingURL=markdown.d.ts.map