import * as React from "react"; import { IDataTableOptions, IFilter, IFilterParameters, ISortParameters, IUseDataTableSettings, TFilterAction, TSortDirection } from "../components/tables/tableTypes"; interface IUseDataTable { currentPage: number; data: T[]; downloadTableAsCSV: () => void; filters: IFilter[]; filterList: Array>; isLoading: boolean; options: IDataTableOptions; printTable: (ref: HTMLTableElement) => void; setRowsPerPage: (newRowsPerPage: number) => void; setPage: (currentPage: number) => void; sortDataBy: (key: keyof T, direction: TSortDirection) => void; sortParameters: ISortParameters; totalRows: number; totalPages: number; updateData: (newData: T[]) => void; updateFilter: (action: TFilterAction, key?: any, value?: React.ReactNode) => void; } export declare function useDataTable({ data, fetch, options, }: IUseDataTableSettings): IUseDataTable; export {};