import * as React from 'react'; import { ModalSize } from 'react-magma-dom'; import { ChartDataTableColumn } from './ChartDataTable'; export interface ChartTableModalProps { /** The chart's data passed to ChartDataTable */ dataSet: Array>; /** Column definitions forwarded to ChartDataTable */ columns?: ChartDataTableColumn[]; /** * DOM element to portal the modal into. Defaults to `document.body`. * When the chart is in fullscreen, pass the fullscreen element so the * modal renders inside it and is visible to the browser. */ portalContainer?: HTMLElement | null; /** * If true, the modal uses inverse (dark) styling. * @default false */ isInverse?: boolean; /** Whether the modal is open */ isOpen: boolean; /** Called when the modal requests to close */ onClose: () => void; /** Called when the "Download as CSV" footer button is clicked */ onDownloadCsv?: () => void; /** Chart title – displayed as a second line in the modal heading */ title: string; /** * Heading level for the modal header (1–6). * @default 2 */ headerLevel?: 1 | 2 | 3 | 4 | 5 | 6; /** * First line of the modal heading. * @default "Tabular representation" (i18n overridable) */ headerLabel?: string; /** * Magma Modal size. * @default ModalSize.large */ size?: ModalSize; } export declare function ChartTableModal({ columns, portalContainer, dataSet, headerLabel, headerLevel, isInverse, isOpen, onClose, onDownloadCsv, size, title, }: ChartTableModalProps): React.JSX.Element;