import { h } from 'preact'; import './tablePreviewUtils.scss'; export declare function splitMarkdownAtFirstTable(md: string): { textBefore: string; tableMarkdown: string; }; export declare const closeTablePopup: () => void; export declare const showTablePreview: (tableHTML: string, title: string) => void; interface TableContentBlockProps { /** Raw markdown string (may contain a GFM table) */ text: string; /** Title forwarded to the table-preview popup */ title: string; /** CSS class for the text div, e.g. "sa-answer-result-text" or "sa-answer-result-snippet" */ textClassName: string; /** Whether the text div is in expanded state */ isExpanded?: boolean; /** Extra CSS classes on the outer container (e.g. "sa-answer-result-text-image") */ className?: string; /** Rendered BEFORE the text div (e.g. an inline thumbnail image) */ extraChildren?: any; /** Rendered INSIDE the text div, after the text (e.g. more-images-block) */ inlineChildren?: any; } export declare function TableContentBlock({ text, title, textClassName, isExpanded, className, extraChildren, inlineChildren, }: TableContentBlockProps): h.JSX.Element; export {};