import { UseColumnOrderInstanceProps, UseColumnOrderState, UseExpandedInstanceProps, UseExpandedOptions, UseExpandedRowProps, UseExpandedState, UseFiltersColumnOptions, UseFiltersColumnProps, UseFiltersInstanceProps, UseFiltersOptions, UseFiltersState, UseGroupByCellProps, UseGroupByColumnOptions, UseGroupByColumnProps, UseGroupByInstanceProps, UseGroupByOptions, UseGroupByRowProps, UseGroupByState, UsePaginationInstanceProps, UsePaginationOptions, UsePaginationState, UseResizeColumnsColumnOptions, UseResizeColumnsHeaderProps, UseResizeColumnsOptions, UseRowSelectInstanceProps, UseRowSelectOptions, UseRowSelectRowProps, UseRowSelectState, UseRowStateCellProps, UseRowStateInstanceProps, UseRowStateRowProps, UseSortByColumnOptions, UseSortByColumnProps, UseSortByInstanceProps, UseSortByOptions, UseSortByState, UseTableCellProps, } from 'react-table' declare module 'react-table' { // take this file as-is, or comment out the sections that don't apply to your plugin configuration export interface TableOptions extends UseExpandedOptions, UseFiltersOptions, UseGroupByOptions, UsePaginationOptions, UseRowSelectOptions, UseSortByOptions, UseFiltersOptions, UseResizeColumnsOptions, // note that having Record here allows you to add anything to the options, this matches the spirit of the // underlying js library, but might be cleaner if it's replaced by a more specific type that matches your // feature set, this is a safe default. Record {} export interface TableInstance extends UseColumnOrderInstanceProps, UseExpandedInstanceProps, UseFiltersInstanceProps, UseGroupByInstanceProps, UsePaginationInstanceProps, UseRowSelectInstanceProps, UseRowStateInstanceProps, UseSortByInstanceProps {} export interface TableState extends UseColumnOrderState, UseExpandedState, UseFiltersState, UseGroupByState, UsePaginationState, UseRowSelectState, UseSortByState {} export interface Column extends UseFiltersColumnOptions, UseGroupByColumnOptions, UseSortByColumnOptions, UseResizeColumnsColumnOptions {} export interface ColumnInstance extends UseFiltersColumnProps, UseGroupByColumnProps, UseSortByColumnProps, UseResizeColumnsHeaderProps {} export interface Cell extends UseTableCellProps, UseGroupByCellProps, UseRowStateCellProps {} export interface Row extends UseExpandedRowProps, UseGroupByRowProps, UseRowSelectRowProps, UseRowStateRowProps {} }