import * as React from 'react'; import { State, Action } from './Table.reducer'; type TableProviderProps = { readonly selectable?: boolean; readonly isLoading?: boolean; readonly children: React.ReactNode; }; export type Context = Readonly<{ selectable: boolean; isLoading: boolean; rows: State['rows']; rowsCount: number; hasAnyRowsChecked: boolean; hasAllRowsChecked: boolean; hasIndeterminateState: boolean; selectedRows: string[]; isRowChecked: (rowId: string) => boolean; dispatch: (action: Action) => void; }>; declare const TableContext: React.Context boolean; dispatch: (action: Action) => void; }>>; declare const useTable: () => Context; declare const TableProvider: ({ selectable, isLoading, children, }: TableProviderProps) => React.JSX.Element; export { TableProvider, TableContext, useTable };