import React from 'react'; import { TableDataItem, TableProps } from '../../Table'; import './withTableSorting.css'; declare type ColumnSortOrder = 'asc' | 'desc'; interface ColumnSortState { column: string; order: ColumnSortOrder; } declare type SortState = ColumnSortState[]; export declare type TableSortState = SortState; export declare type TableColumnSortState = ColumnSortState; export interface WithTableSortingProps { defaultSortState?: SortState; sortState?: SortState; onSortStateChange?: (sortState: SortState) => void; } export declare function withTableSorting(TableComponent: React.ComponentType & E>): React.ComponentType & WithTableSortingProps & E>; export {};