import { ComputedRef, MaybeRef, WritableComputedRef } from 'vue'; export interface LocalPaginationOptions { items: MaybeRef>; perPage?: MaybeRef; /** * Sources that reset the current page back to the first one, e.g. the active filter term. */ resetOn?: MaybeRef | Array>; } export interface LocalPaginationResult { currentPage: WritableComputedRef; totalPages: ComputedRef; paginatedItems: ComputedRef>; } /** * Paginates a list of items in memory, keeping the current page in component local state. * * Use this instead of `usePagination` wherever the page must not be part of the route, * e.g. inside a sidebar panel that is rendered next to an already paginated list. * * The current page is reset whenever one of the given `resetOn` sources changes, so applying a * filter always starts over on the first page. It is also clamped to the available pages, which * keeps the page in range if items are removed from the list. */ export declare function useLocalPagination({ items, perPage, resetOn }: LocalPaginationOptions): LocalPaginationResult;