import type { CSSProperties } from 'react'; import type { SxProp } from '../Layout/sx.js'; export interface PaginationProps { /** Current page (1-based). */ page: number; /** Total number of pages. */ pageCount: number; /** Fired with the new page when the user clicks. */ onPageChange: (page: number) => void; /** Pages to show on each side of the current page. Default 1. */ siblingCount?: number; /** Whether to always show the first/last page. Default true. */ showEdges?: boolean; /** Hide the prev/next chevrons. */ hideControls?: boolean; size?: 'sm' | 'md' | 'lg'; /** Show a "Go to page" number input (Enter to jump). */ showPageInput?: boolean; /** Current rows per page — shows the page-size picker when `onPageSizeChange` is also set. */ pageSize?: number; /** Choices for the page-size picker. Default `[10, 25, 50, 100]`. */ pageSizeOptions?: number[]; /** Fires with the new rows-per-page. */ onPageSizeChange?: (pageSize: number) => void; /** * Compact layout: prev / "Page 3 of 12" / next instead of numbered buttons. * `'auto'` (default) switches to it at 480px wide and below. */ compact?: boolean | 'auto'; /** Show First / Last page buttons beside Previous / Next. Hidden in the compact layout. */ showFirstLast?: boolean; /** * Total row count. With `pageSize`, renders the range text "1–10 of 243" * (localized numbers) ahead of the controls. */ totalCount?: number; className?: string; style?: CSSProperties; /** * One-off CSS, same as `Box`'s `sx`: each value may be a scalar or a * responsive breakpoint map (`{ base, sm, md, lg, xl }`). Scalar-only sx * merges into inline style; responsive sx injects a scoped class. */ sx?: SxProp; 'aria-label'?: string; } type Item = { type: 'page'; page: number; } | { type: 'ellipsis'; key: string; }; /** * Constant-width page list: `1 … 4 5 [6] 7 8 … 25`. The slot count stays the * same near either end, so the controls do not jump while paging. * @internal exported for tests */ export declare function buildPageItems(page: number, pageCount: number, siblingCount?: number): Item[]; /** * Pagination — page-number nav with prev/next chevrons. Server-driven: * pass `page`, `pageCount`, and `onPageChange`. */ export declare const Pagination: import("react").ForwardRefExoticComponent>; export {};