import * as React from 'react'; import type { PartProps } from '../../contracts/components.js'; import { getPaginationRange } from './getRange.js'; export type PaginationLabels = { pagination?: string | undefined; previous?: string | undefined; next?: string | undefined; page?: ((n: number) => string) | undefined; }; export type PaginationRootProps = Omit, 'onChange' | 'aria-label'> & { /** Controlled current page (1-based). Pair with `onPageChange`. */ page?: number | undefined; /** Initial page (1-based) when uncontrolled. */ defaultPage?: number | undefined; /** Total number of pages. */ pageCount: number; /** Called with the next page (1-based). */ onPageChange?: ((page: number) => void) | undefined; /** Pages shown on each side of the current page. */ siblingCount?: number | undefined; /** Pages always shown at the start and the end. */ boundaryCount?: number | undefined; /** Link mode: href builder for each page (server-safe, no client state). */ getHref?: ((page: number) => string) | undefined; /** Overrides for the built-in, localizable UI strings. */ labels?: PaginationLabels | undefined; /** Accessible name, required when there is no visible label. */ 'aria-label'?: string | undefined; }; declare function PaginationRoot({ page, defaultPage, pageCount, onPageChange, siblingCount, boundaryCount, getHref, labels, 'aria-label': ariaLabel, children, render, ...rest }: PaginationRootProps): React.JSX.Element; declare namespace PaginationRoot { var displayName: string; } export type PaginationItemProps = Omit, 'value'> & { page: number; current?: boolean | undefined; href?: string | undefined; }; /** Manual-composition item for consumers building their own range. */ export declare function PaginationItem({ page, current, href, children, render, ...rest }: PaginationItemProps): React.JSX.Element; export declare namespace PaginationItem { var displayName: string; } export type PaginationArrowProps = PartProps<'a'> & { href?: string | undefined; disabled?: boolean | undefined; }; export declare function PaginationPrevious({ href, disabled, render, ...rest }: PaginationArrowProps): React.JSX.Element; export declare namespace PaginationPrevious { var displayName: string; } export declare function PaginationNext({ href, disabled, render, ...rest }: PaginationArrowProps): React.JSX.Element; export declare namespace PaginationNext { var displayName: string; } export declare function PaginationEllipsis({ render, ...rest }: PartProps<'span'>): React.ReactElement>; export declare namespace PaginationEllipsis { var displayName: string; } export declare const Pagination: { Root: typeof PaginationRoot; Previous: typeof PaginationPrevious; Next: typeof PaginationNext; Item: typeof PaginationItem; Ellipsis: typeof PaginationEllipsis; getRange: typeof getPaginationRange; }; export {}; //# sourceMappingURL=Pagination.d.ts.map