import * as TE from 'fp-ts/lib/TaskEither'; import { Page, ResolvablePage } from './types'; import { ErrorInfo } from './types/ErrorInfo'; import { TypedApiObject } from './types/TypedApiObject'; /** * Iteratively follows paginated results. * NOTE: This method has no upper runtime limit and may time out. */ export declare const paginate: (resolvePage: (page: ResolvablePage) => TE.TaskEither>, fetchedItems?: O[]) => ({ next, items }: Page) => TE.TaskEither;