import React from "react"; import { SortDirection } from "./table-typings"; export interface SortedColumn { accessor: keyof T; sortDirection: SortDirection; } interface TableState { sortedColumn: SortedColumn; expandedRows: Array; } export declare type TableContextType = { tableState: TableState; setTableState: (newState: TableState) => void; onRowSelect: (event: React.ChangeEvent, rowKey: string) => void; onRowExpand: (isExpanded: boolean, rowKey: string) => void; onSort: any; }; export declare const TableContext: React.Context; export {};