import { AbstractPage, Response, APIClient, FinalRequestOptions, PageInfo } from "./core.js"; export interface PageResponse { data: Array; object: string; } /** * Note: no pagination actually occurs yet, this is for forwards-compatibility. */ export declare class Page extends AbstractPage implements PageResponse { data: Array; object: string; constructor(client: APIClient, response: Response, body: PageResponse, options: FinalRequestOptions); getPaginatedItems(): Item[]; /** * This page represents a response that isn't actually paginated at the API level * so there will never be any next page params. */ nextPageParams(): null; nextPageInfo(): null; } export interface CursorPageResponse { data: Array; } export interface CursorPageParams { after?: string; limit?: number; } export declare class CursorPage extends AbstractPage implements CursorPageResponse { data: Array; constructor(client: APIClient, response: Response, body: CursorPageResponse, options: FinalRequestOptions); getPaginatedItems(): Item[]; nextPageParams(): Partial | null; nextPageInfo(): PageInfo | null; } //# sourceMappingURL=pagination.d.ts.map