import type { Jsonify } from "type-fest"; import type { GadgetRecord, RecordShape } from "./GadgetRecord.js"; import type { InternalModelManager } from "./InternalModelManager.js"; import type { AnyModelManager } from "./ModelManager.js"; import type { PaginateOptions } from "./types.js"; type PaginationConfig = { pageInfo: { hasNextPage: boolean; hasPreviousPage: boolean; startCursor: string; endCursor: string; }; options?: PaginateOptions; }; /** Represents a list of objects returned from the API. Facilitates iterating and paginating. */ export declare class GadgetRecordList extends Array> { modelManager: AnyModelManager | InternalModelManager; pagination: PaginationConfig; /** Internal method used to create a list. Should not be used by applications. */ static boot(modelManager: AnyModelManager | InternalModelManager, records: GadgetRecord[], pagination: PaginationConfig): GadgetRecordList; static get [Symbol.species](): ArrayConstructor; firstOrThrow(): NonNullable>; toJSON(): Jsonify[]; get hasNextPage(): boolean; get hasPreviousPage(): boolean; get startCursor(): string; get endCursor(): string; nextPage(): Promise>; previousPage(): Promise>; } export {};