import type { ListPaginationProps } from '../components/list-pagination.component'; export interface ClientPagination { /** Zero-based. */ page: number; pageSize: number; /** The rows of the current page. */ pageItems: T[]; setPage: (page: number) => void; /** Changes the page size and returns to the first page. */ setPageSize: (pageSize: number) => void; /** Everything `ListPagination` needs, for a list held whole in memory. */ paginationProps: ListPaginationProps; } /** * A list already held whole in memory, paged for `ListPagination` (AGL-3637). * * The pairing every plugin was writing by hand: a page and a page size in * state, a `slice()`, and the footer's props. The page is pulled back inside * the list when it shrinks under the reader — a filter that leaves two rows * must not strand them on an empty page five. A list fetched page by page * from Firestore pages with `usePagedCollection` instead. */ export declare function useClientPagination(items: readonly T[], options?: { pageSize?: number; }): ClientPagination;