import { MouseEventHandler } from "react"; import { TableInstance, UseColumnOrderInstanceProps, UseColumnOrderState, UseExpandedHooks, UseExpandedInstanceProps, UseExpandedOptions, UseExpandedRowProps, UseExpandedState, UseFiltersColumnOptions, UseFiltersColumnProps, UseFiltersInstanceProps, UseFiltersOptions, UseFiltersState, UseGlobalFiltersInstanceProps, UseGlobalFiltersOptions, UseGlobalFiltersState, UseGroupByCellProps, UseGroupByColumnOptions, UseGroupByColumnProps, UseGroupByHooks, UseGroupByInstanceProps, UseGroupByOptions, UseGroupByRowProps, UseGroupByState, UsePaginationInstanceProps, UsePaginationOptions, UsePaginationState, UseResizeColumnsColumnOptions, UseResizeColumnsColumnProps, UseResizeColumnsOptions, UseResizeColumnsState, UseRowSelectHooks, UseRowSelectInstanceProps, UseRowSelectOptions, UseRowSelectRowProps, UseRowSelectState, UseSortByColumnOptions, UseSortByColumnProps, UseSortByHooks, UseSortByInstanceProps, UseSortByOptions, UseSortByState } from "react-table"; declare module "react-table" { export interface UseFlexLayoutInstanceProps< D extends Record > { totalColumnsMinWidth: number; } export interface UseFlexLayoutColumnProps> { totalMinWidth: number; } export interface TableOptions> extends UseExpandedOptions, UseFiltersOptions, UseFiltersOptions, UseGlobalFiltersOptions, UseGroupByOptions, UsePaginationOptions, UseResizeColumnsOptions, UseRowSelectOptions, UseSortByOptions {} export interface Hooks< D extends Record = Record > extends UseExpandedHooks, UseGroupByHooks, UseRowSelectHooks, UseSortByHooks {} export interface TableInstance< D extends Record = Record > extends UseColumnOrderInstanceProps, UseExpandedInstanceProps, UseFiltersInstanceProps, UseGlobalFiltersInstanceProps, UseGroupByInstanceProps, UsePaginationInstanceProps, UseRowSelectInstanceProps, UseFlexLayoutInstanceProps, UsePaginationInstanceProps, UseSortByInstanceProps {} export interface TableState< D extends Record = Record > extends UseColumnOrderState, UseExpandedState, UseFiltersState, UseGlobalFiltersState, UseGroupByState, UsePaginationState, UseResizeColumnsState, UseRowSelectState, UseSortByState { rowCount: number; } export interface ColumnInterface< D extends Record = Record > extends UseFiltersColumnOptions, UseGroupByColumnOptions, UseResizeColumnsColumnOptions, UseSortByColumnOptions { align?: string; } export interface ColumnInstance< D extends Record = Record > extends UseFiltersColumnProps, UseGroupByColumnProps, UseResizeColumnsColumnProps, UseFlexLayoutColumnProps, UseSortByColumnProps {} export type Cell< D extends Record = Record > = UseGroupByCellProps; export interface Row extends UseExpandedRowProps, UseGroupByRowProps, UseRowSelectRowProps {} } export type TableMouseEventHandler = ( instance: TableInstance ) => MouseEventHandler;