/** @jsx jsx */ import { TableHTMLAttributes, TdHTMLAttributes, ThHTMLAttributes, ComponentType } from 'react'; export interface ITrProps { index: number; value: T; } export interface ITableProps extends TableHTMLAttributes { /** * Array containing the data to display */ data: T[]; /** * Component that will render each row. It will receive two props: index and value. */ Tr: ComponentType>; /** * Optional component to display if the data is empty. */ Empty?: ComponentType; /** * Optional component to render the header. It will be placed inside a element. */ Header?: ComponentType; /** * Should the table rows have zebra striping */ striped?: boolean; pagination?: boolean; itemsPerPage?: number; } export declare function Table(props: ITableProps): JSX.Element; export declare type ITdProps = TdHTMLAttributes; export declare function Td(props: ITdProps): JSX.Element; export declare type IThProps = ThHTMLAttributes; export declare function Th(props: IThProps): JSX.Element;