import React from 'react'; export type SortDirection = 'ascending' | 'descending'; export type SortKey = Key | 'unset'; type TableContext = { isSelectable?: boolean; sortKey: SortKey; sortDirection?: SortDirection; sortFn?: (a: T, b: T) => number; setSortState: (key: SortKey) => void; }; declare const TableContext: React.Context>; /** * __Table state provider__ * * The table context provides the data required for more complex functionality. * * - [Examples](https://atlassian.design/components/table/examples) */ export declare function TableProvider({ children, state, }: { children: React.ReactNode; state: TableContext; }): React.JSX.Element; export declare const useTable: () => TableContext; export {};