export type PaginationRangeItem = number | '...'; /** * Configuration used to compute a pagination range. */ export interface PaginationRangeConfig { /** Current page (1-based). */ currentPage: number; /** Total number of paginated items. */ totalCount: number; /** Number of items per page. */ pageSize: number; /** Number of visible page buttons in the start zone. */ numStartZoneButtons: number; /** Number of visible page buttons in the end zone. */ numEndZoneButtons: number; /** Number of visible page buttons in the middle zone. */ numMiddleButtons: number; /** Enables the explicit middle zone rendering mode. */ showMiddleZone: boolean; } /** * Generates a pagination range with page numbers and ellipsis items. * @param {PaginationRangeConfig} config Pagination configuration. * @returns {PaginationRangeItem[]} Ordered range items. */ export declare function calculatePaginationRange({ currentPage, totalCount, pageSize, numStartZoneButtons, numEndZoneButtons, numMiddleButtons, showMiddleZone, }: PaginationRangeConfig): PaginationRangeItem[];