/** * createPagination - the HEADLESS core behind : the page/ellipsis * sequence (via the pure `paginationRange`) plus navigation (first/prev/next/last * with clamping) and prop-getters you spread onto your own markup. Pure getters, * no runes - so it is directly unit-testable and framework-free. * * ```svelte * * * ``` */ import { type PaginationItem } from './paginate'; export type PaginationConfig = { /** 1-based current page. */ page: () => number; pageCount: () => number; onChange?: (page: number) => void; siblingCount?: () => number; boundaryCount?: () => number; disabled?: () => boolean; }; export declare function createPagination(config: PaginationConfig): { /** The page/ellipsis sequence to render, recomputed from the live inputs. */ readonly items: PaginationItem[]; go: (p: number) => void; first: () => void; prev: () => void; next: () => void; last: () => void; canPrev: () => boolean; canNext: () => boolean; isActive: (p: number) => boolean; /** Spread onto the `