import { RequestData, StripeResourceObject, MakeRequestSpec } from './Types.js'; import { RequestOptions } from './lib.js'; type IterationDoneCallback = (err?: any, result?: any) => void; type IterationItemCallback = (item: T, next: any) => void | boolean | Promise; type AutoPagingEach = (onItem: IterationItemCallback, onDone?: IterationDoneCallback) => Promise; type AutoPagingToArrayOptions = { limit?: number; }; type AutoPagingToArray = (opts: AutoPagingToArrayOptions, onDone: IterationDoneCallback) => Promise>; type AutoPaginationMethods = { autoPagingEach: AutoPagingEach; autoPagingToArray: AutoPagingToArray; next: () => Promise>; return: () => void; }; type PageResult = { data: Array; has_more: boolean; next_page?: string | null; next_page_url?: string | null; }; export declare const makeAutoPaginationMethods: (stripeResource: StripeResourceObject, params: RequestData, options: RequestOptions | undefined, method: string, path: string, spec: MakeRequestSpec | undefined, firstPagePromise: Promise>) => AutoPaginationMethods | null; export {};