export interface IPaginationLabels { /** Label in front of the page selector, such as "Page:". */ page: string; /** The shown range, such as "1 - 10 of 4843". */ range: string; /** Accessible name of the "previous page" button. */ previous: string; /** Accessible name of the "next page" button. */ next: string; } /** The number of pages `total` items fill, at least one. */ export declare const pageCount: (total: number, pageSize: number) => number; /** Keeps a page number inside the pages that exist. */ export declare const clampPage: (page: number, total: number, pageSize: number) => number; /** The items of a single page. Out of range pages read as the nearest one. */ export declare const pageSlice: (items: T[], page: number, pageSize: number) => T[]; /** The 1-based item numbers the page covers, `0 - 0` when there are none. */ export declare const pageRange: (page: number, total: number, pageSize: number) => { first: number; last: number; }; /** * A page selector with the shown range and previous/next buttons. Callers own * the page number and pass it back in, so the component stays the source of * truth. */ export declare const renderPagination: (options: { page: number; pageSize: number; total: number; labels: IPaginationLabels; onPageChange: (page: number) => void; }) => any;