import React from 'react'; /** * Props for the MarkdownMessage component. */ interface MarkdownMessageProps { /** Raw markdown content to render */ content: string; /** Custom CSS classes for the container */ className?: string; } /** * Lightweight Markdown Parser and Renderer. * * @description * A simplified markdown renderer built for chat messages, where a full-blown * parser (react-markdown + remark/rehype plugins) would be overkill. Supports * headers (h1-h4), bold, italic, strikethrough, links, inline code, fenced * code blocks (rendered via `CodeBlock`, with syntax highlighting), blockquotes, * ordered/unordered lists, and GFM tables. * * @ai-rules * 1. Sanitization: Uses regex for conversion. Be cautious with complex markdown structures. * 2. Styling: Injected HTML uses specific Tailwind classes for consistent typography. * 3. Security: Non-code content uses `dangerouslySetInnerHTML` after escaping `<`/`>`. * Fenced code content is rendered as a React text child (via `CodeBlock`), which * React escapes automatically — never re-escape it manually. */ export declare function MarkdownMessage({ content, className }: MarkdownMessageProps): React.JSX.Element; export {};