import { AbstractPage, Response, APIClient, FinalRequestOptions, PageInfo } from "./core.js"; export interface CursorPageResponse { /** * Cursor to fetch the next page */ next_page: string; /** * Items of the page */ data: Array; } export interface CursorPageParams { /** * Cursor to begin fetching from */ next_page?: string; /** * Number of elements to fetch */ limit?: number; } export declare class CursorPage extends AbstractPage implements CursorPageResponse { /** * Cursor to fetch the next page */ next_page: string; /** * Items of the page */ data: Array; constructor(client: APIClient, response: Response, body: CursorPageResponse, options: FinalRequestOptions); getPaginatedItems(): Item[]; hasNextPage(): boolean; nextPageParams(): Partial | null; nextPageInfo(): PageInfo | null; } //# sourceMappingURL=pagination.d.ts.map