/** * Copyright (c) ACT, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import { CSSProperties, ReactElement } from 'react'; import { EmptyStateProps } from "../EmptyState"; import { SortObject } from "../../types"; interface Column { renderValue: (item: T) => any; label?: string; sortBy?: string; style?: CSSProperties; } export interface DataTableProps { color?: 'default' | 'primary' | 'secondary'; columns: Column[]; currentSortObject: SortObject; emptyStateProps?: EmptyStateProps; items: T[]; limit?: number; offset?: number; onChangeLimit?: (limit: number) => void; onChangeOffset?: (offset: number) => void; onChangeSort: (sortObject: SortObject) => void; rowsPerPageOptions?: number[]; RowWrapper?: (item: T, children: ReactElement) => ReactElement; totalCount?: number; } export declare const DataTable: ({ color, columns, currentSortObject, emptyStateProps, items, limit, offset, onChangeLimit, onChangeOffset, onChangeSort, rowsPerPageOptions, RowWrapper, totalCount, }: DataTableProps) => ReactElement; export default DataTable; //# sourceMappingURL=index.d.ts.map