import { Dispatch, RefObject } from 'react'; export declare enum WidthActionType { SET_WIDTHS = 0, UPDATE_WIDTHS = 1, RESET_WIDTHS = 2, SET_TOTAL_WIDTH = 3 } interface SetWidthsAction { readonly type: WidthActionType.SET_WIDTHS; readonly widths: ReadonlyArray; } interface UpdateWidthsAction { readonly type: WidthActionType.UPDATE_WIDTHS; readonly widths: { readonly [id: number]: number | undefined; }; readonly onWidthsChange?: (widths: ReadonlyArray) => void; } interface ResetWidthsAction { readonly type: WidthActionType.RESET_WIDTHS; readonly numberOfColumns: number; } interface SetTotalWidthAction { readonly type: WidthActionType.SET_TOTAL_WIDTH; readonly value: number; } export declare type WidthAction = SetWidthsAction | UpdateWidthsAction | ResetWidthsAction | SetTotalWidthAction; /******************************************************************************* * * TableContext * * Keeps track of table-wide properties which need to * be accessible from within each of the subcomponents. * ******************************************************************************/ export declare const TableContext: import("react").Context<{ readonly minColumnWidth: number; readonly columnWidths: ReadonlyArray; readonly dispatchWidthsAction: Dispatch; readonly selectWidth: number; readonly menuWidth: number; readonly onSelect?: ((selected: boolean, id?: string) => void) | undefined; readonly hasMenu: boolean; readonly onWidthsChange?: ((widths: ReadonlyArray) => void) | undefined; readonly tableRef?: RefObject | undefined; }>; export {};