import type { Column, Headers, UnknownObject } from '../helpers/functions'; import TableAction from '../helpers/table-action.enum'; export type TableReducerAction = { type: TableAction.FetchStart; } | { type: TableAction.FetchSuccess; asyncData: T[]; columns: Column[]; } | { type: TableAction.FetchError; } | { type: TableAction.SetSorting; column: Column; } | { type: TableAction.SetActivePage; activePage: number; } | { type: TableAction.ToggleColumn; key: string; } | { type: TableAction.ToggleAllColumns; columns: Column[]; isChecked: boolean; } | { type: TableAction.ResetPageForFilter; filterValue: string; }; export declare function useTableReducer(initialColProperties?: Headers): [{ colProperties: Headers; activePage: number; asyncData: T[]; columns: Column[]; isLoading: boolean; prevFilterValue: string; sorting: import("../helpers/functions").Sorting; }, import("react").ActionDispatch<[action: TableReducerAction]>];