/** * Custom hook to generate page ranges for any pagination component. * Referenced from * https://www.freecodecamp.org/news/build-a-custom-pagination-component-in-react/ */ interface UsePaginationRangeProps { /** * Number of pages to display to left and right of current page. */ siblingCount: number; /** * Total number of elements to paginate. */ totalCount: number; /** * Size of each page. Determines the number of rendered page counts. */ pageSize: number; /** * Represents the current active page. Note that a `1-based index` is used. */ currentPage: number; /** * A constant to denote a separator in the pagination component. */ separator: T; } export declare const usePaginationRange: ({ totalCount, pageSize, siblingCount, currentPage, separator, }: UsePaginationRangeProps) => (T | number)[]; export {};