import { AbstractPage, Response, APIClient, FinalRequestOptions, PageInfo } from "./core.js"; export interface V4PagePaginationResponse { result: V4PagePaginationResponse.Result; result_info: V4PagePaginationResponse.ResultInfo; } export declare namespace V4PagePaginationResponse { interface Result { items?: Array; } interface ResultInfo { page?: number; per_page?: number; } } export interface V4PagePaginationParams { page?: number; per_page?: number; } export declare class V4PagePagination extends AbstractPage implements V4PagePaginationResponse { result: V4PagePaginationResponse.Result; result_info: V4PagePaginationResponse.ResultInfo; constructor(client: APIClient, response: Response, body: V4PagePaginationResponse, options: FinalRequestOptions); getPaginatedItems(): Item[]; nextPageParams(): Partial | null; nextPageInfo(): PageInfo | null; } export interface V4PagePaginationArrayResponse { result: Array; result_info: V4PagePaginationArrayResponse.ResultInfo; } export declare namespace V4PagePaginationArrayResponse { interface ResultInfo { page?: number; per_page?: number; } } export interface V4PagePaginationArrayParams { page?: number; per_page?: number; } export declare class V4PagePaginationArray extends AbstractPage implements V4PagePaginationArrayResponse { result: Array; result_info: V4PagePaginationArrayResponse.ResultInfo; constructor(client: APIClient, response: Response, body: V4PagePaginationArrayResponse, options: FinalRequestOptions); getPaginatedItems(): Item[]; nextPageParams(): Partial | null; nextPageInfo(): PageInfo | null; } export interface CursorPaginationResponse { result: Array; result_info: CursorPaginationResponse.ResultInfo; } export declare namespace CursorPaginationResponse { interface ResultInfo { count?: number; cursor?: string; per_page?: number; } } export interface CursorPaginationParams { per_page?: number; cursor?: string; } export declare class CursorPagination extends AbstractPage implements CursorPaginationResponse { result: Array; result_info: CursorPaginationResponse.ResultInfo; constructor(client: APIClient, response: Response, body: CursorPaginationResponse, options: FinalRequestOptions); getPaginatedItems(): Item[]; nextPageParams(): Partial | null; nextPageInfo(): PageInfo | null; } export interface CursorLimitPaginationResponse { result: Array; result_info: CursorLimitPaginationResponse.ResultInfo; } export declare namespace CursorLimitPaginationResponse { interface ResultInfo { count?: number; cursor?: string; per_page?: number; } } export interface CursorLimitPaginationParams { limit?: number; cursor?: string; } export declare class CursorLimitPagination extends AbstractPage implements CursorLimitPaginationResponse { result: Array; result_info: CursorLimitPaginationResponse.ResultInfo; constructor(client: APIClient, response: Response, body: CursorLimitPaginationResponse, options: FinalRequestOptions); getPaginatedItems(): Item[]; nextPageParams(): Partial | null; nextPageInfo(): PageInfo | null; } export interface SinglePageResponse { result: Array; } export declare class SinglePage extends AbstractPage implements SinglePageResponse { result: Array; constructor(client: APIClient, response: Response, body: SinglePageResponse, 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; } //# sourceMappingURL=pagination.d.ts.map