import type { FC } from "react"; export type CompactPaginationLabel = "complete" | "compact" | "none"; export type CompactPaginationLocale = { goToFirstPage?: string; goToLastPage?: string; goToNextPage?: string; goToPreviousPage?: string; label?(page: number, nbPages?: number): string; }; type BaseCompactPaginationProps = { /** * The current page number. (1-indexed) */ currentPage: number; /** * The function to call when the page changes. */ onChange: (page: number) => void; /** * Whether to show the "Go to first page" button. */ showGoToFirstPage?: boolean; /** * The label to display. */ label?: CompactPaginationLabel; /** * The locale to use. */ locale?: CompactPaginationLocale; }; export type DeterminateCompactPaginationProps = BaseCompactPaginationProps & { /** * The total number of pages. */ nbPages: number; /** * Whether the "Go to last page" button should be shown. */ showGoToLastPage?: boolean; }; export type IndeterminateCompactPaginationProps = BaseCompactPaginationProps & { /** * Whether the "Go to next page" button should be disabled. */ nextDisabled?: boolean; }; export type CompactPaginationProps = DeterminateCompactPaginationProps | IndeterminateCompactPaginationProps; /** @ignore */ export declare const isDeterminateCompactPaginationProps: (props: CompactPaginationProps) => props is DeterminateCompactPaginationProps; /** @ignore */ export declare const isIndeterminateCompactPaginationProps: (props: CompactPaginationProps) => props is IndeterminateCompactPaginationProps; /** * The `CompactPagination` component is used to help our users to move through an ordered collection of items represented by a page number and arrows. * * See the [Compact Pagination documentation page](https://satellite.algolia.com/8261d6576/p/39f2e9-pagination/b/8091e5) for more information. */ export declare const CompactPagination: FC; export {};