import { type ReactNode } from 'react'; /** Page sizes a list offers; the first is the default. */ export declare const PAGE_SIZES: readonly [number, ...number[]]; export interface PaginationProps { /** The page shown, counting from 0. */ page: number; pageSize: number; /** How many rows there are. Leave it out for a list that only knows whether * more follow, and pass `hasNext`. */ total?: number | undefined; /** Whether a page follows. Needed without a `total`, and for a total that is * a capped count, so paging doesn't stop at the cap. */ hasNext?: boolean | undefined; /** Moves to a page. */ onPageChange?: ((page: number) => void) | undefined; /** Makes each page a link instead, for pages the address names. */ pageHref?: ((page: number) => string) | undefined; /** Page sizes to offer; shown only with `onPageSizeChange`. */ pageSizes?: readonly number[]; onPageSizeChange?: ((size: number) => void) | undefined; /** Replaces "1–50 of 200", such as with the time range a page covers. */ summary?: ReactNode; /** Numbers the pages between previous and next, for a list a reader jumps * around in, such as a catalog: the first and last, and a window around * the current one, with gaps between. `max` is how many steps show at * most, gaps included (7 by default, 5 at least). Needs a `total`. Where * the bar is narrow, as on a phone, the window narrows to the first, the * current and the last page (5 steps), and where even those won't fit, to * the current page and the count: "5 / 12". */ pageNumbers?: boolean | { max?: number | undefined; } | undefined; /** Names the pager for assistive technology, such as "Pages of users", so pagers on one page * tell apart; the strings' "Pagination" by default. */ label?: string | undefined; className?: string | undefined; } /** The pages to number, counting from 0, with `null` for a gap: all of them * when they fit in `max` steps, and otherwise the first and last around a * window on the current one, `max` steps in all. */ export declare function pageSteps(page: number, count: number, max?: number): (number | null)[]; /** Steps through a list a page at a time: where the page sits in the list, * previous and next, and optionally how many rows a page holds. Renders * nothing when everything fits on one page. */ export declare function Pagination({ page, pageSize, total, hasNext, onPageChange, pageHref, pageSizes, onPageSizeChange, summary, pageNumbers, label, className, }: PaginationProps): import("react").JSX.Element | null;