import { TablePaginationProps } from './TablePagination'; /** * Basic offset based pagination (when the dataset doesn't change very often). * * Another alternative option would be based on "key", with better performance * but not always available (more indicated when the dataset changes a lot). * * This hook handles the state of the paging component. * The hook optionally receives a list of RowsPerPageOptions as a parameter. * Returns the pagination component as is, the properties that should be passed * to the pagination component where it is used, the pagination parameters that * correspond when the page is changed, and a setter method to set the total * data in the source. */ export declare function useTablePagination(rowsPerPageOptions?: RowsPerPageOptions): UseTablePaginationResult; export interface UseTablePaginationResult { setCountTotal: (count: number) => void; paginationParams: URLSearchParams | null; /** The props you should spread onto the Pagination component */ paginationProps: TablePaginationProps; /** The hook returns the UI Table Pagination component as a nicety so you don't have to mess with importing it */ TablePagination?: any; } interface RowsPerPageOptions { options: number[]; default?: number; } export {};