import React from 'react'; import { Props as BaseTableProps } from './bin/BaseTable'; import { Nullable } from '../../types'; import { TableDataColumn, TableDataRow } from './types'; import { TableSkeletonProps } from './bin/Skeleton'; export interface BaseProps extends BaseTableProps { 'aria-label'?: string; rows: TableDataRow[]; columns: TableDataColumn[]; sort?: string; asc?: boolean; desc?: boolean; children: (args: { rows: TableDataRow[]; columns: TableDataColumn[]; sortDirection: string; sortColumn: Nullable; onSortColumn: (column: string) => void; }) => React.ReactNode; } interface SkeletonProps extends TableSkeletonProps, BaseProps { skeleton?: boolean; type?: T; } export type Props = BaseProps | SkeletonProps; declare const Table: (props: Props) => JSX.Element; export default Table;