import React from 'react'; import { PaginationListItemButtonProps } from './Pagination.js'; export interface usePaginationProps { total: number; resultsPerPageOptions: number[]; previousLabel?: string; nextLabel?: string; } export interface usePaginationReturn { registerPaginationLabel: () => { start: number; end: number; total: number; ref: React.RefObject | undefined; }; registerPaginationResultsPerPageSelect: () => { resultsPerPageOptions: number[]; currentResultsPerPage: number; handleOnChange: React.Dispatch>; ref: React.RefObject | undefined; }; setTotal: (total: number) => void; setCurrentPage: (page: number) => void; items: PaginationListItemButtonProps[]; currentPage: number; offset: number; limit: number; } export declare const usePagination: ({ total: totalLength, resultsPerPageOptions, previousLabel, nextLabel, }: usePaginationProps) => usePaginationReturn; export default usePagination;