import { PaginatedResult } from './pagination'; type FetchNext = (next: string | null | undefined) => Promise>; export type PaginationFilter = (item: T) => boolean; export type OnPageLoad = (items: T[], next: string | null | undefined) => Promise | void; export declare function paginate(fetchNext: FetchNext, filter?: PaginationFilter, onPage?: OnPageLoad): Promise; export {};