import * as React from 'react'; import { TableNode, TableProps, RowProps } from '@table-library/react-table-library/types/table'; import { RowHeight } from '@table-library/react-table-library/types/virtualized'; import { ColumnSortProps } from '@table-library/react-table-library/types/sort'; import { ColumnSelectProps } from '@table-library/react-table-library/types/select'; import { ColumnTreeProps } from '@table-library/react-table-library/types/tree'; import { ColumnResizeProps } from '@table-library/react-table-library/types/resize'; export declare type Column = { label: string; renderCell: (node: T) => React.ReactNode; footer?: string; resize?: ColumnResizeProps; sort?: ColumnSortProps; select?: ColumnSelectProps; tree?: ColumnTreeProps; pinLeft?: boolean; pinRight?: boolean; hide?: boolean; cellProps?: Record; }; export declare type VirtualizedOptions = { rowHeight: RowHeight; itemCount?: number; }; export declare type TableOptions = { renderBeforeTable?: () => React.ReactNode; renderAfterTable?: () => React.ReactNode; }; export declare type RowOptions = { renderBeforeRow?: (node: T, index: number) => React.ReactNode; renderAfterRow?: (node: T, index: number) => React.ReactNode; }; export declare type RowPropsAsObject = Omit, 'item' | 'children'>; export declare type CompactTableProps = TableProps & { columns: Column[]; tableOptions?: TableOptions; rowProps?: RowPropsAsObject; rowOptions?: RowOptions; virtualizedOptions?: VirtualizedOptions; }; export declare type NormalTableProps = CompactTableProps & { tableList: T[]; }; export declare type VirtualizedTableProps = CompactTableProps & { tableList: T[]; }; export declare type Internals = { index: number; style: any; data: { items: T[]; }; }; export declare type InternalsObject = { internals: Internals; };