import React from 'react'; import './Table.css'; type IInitialSortBy = { id: string; desc: boolean; }; type IRowSelectCheckboxProp = { key: string; value: boolean; }; type IActionCbArg = { data: any[]; type: string; }; type IOnRowSelectProp = { label: string | React.ReactNode; cb: (actionCbArg: IActionCbArg) => void; }; type IDataType = { singular: string; plural: string; }; type IColumns = { Header: string; accessor: string; default?: boolean; disableSortBy?: boolean; assetSmallView?: boolean; Cell?: (props: any) => React.ReactNode; addToColumnSelector?: boolean | false; cssClass?: string; }; type ISortBy = { id: string; sortingDirection: string; }; type IFetchTableDataArg = { skip: number; limit: number; pageIndex: number; pageSize: number; sortBy?: ISortBy | undefined; }; export type ITableProps = { columns: IColumns[]; columnSelector?: boolean; data: any[]; dataType?: IDataType; hiddenColumns?: string[]; initialSortBy?: IInitialSortBy[] | []; initialPageSize?: number; initialPageIndex?: number; pageCount?: number; fetchTableData?: (fetchTableDataArg: IFetchTableDataArg) => void; canPaginate?: boolean; onRowClick?: (e: any) => void; loading?: boolean; isRowSelect?: boolean; onRowSelectProp?: IOnRowSelectProp[]; uniqueKey: string; rowSelectCheckboxProp?: IRowSelectCheckboxProp; isResetPage?: boolean; initialSelectedRowIds?: object; getSelectedRow?: Function; totalCounts: number; }; declare const Table: React.FunctionComponent; export default Table;