import RumpusCE from '../RumpusCE.js'; interface BaseQuery { limit?: number; sort?: string; tiebreakerItemId?: string; } interface Item { _id: string; } /** An array that incluedes a `nextPage()` function, representing a "page" of search results. */ export interface ResultsPage extends Array { /** Fetch the next page of results from the API. */ nextPage(): Promise>; } /** Return a ResultsPage whose `nextPage()` method always returns an empty ResultsPage. For exhausted searches. */ export declare function blankResultsPage(): Promise>; interface SearchFunction { call(client: RumpusCE, query?: query, options?: options): Promise>; } export declare function addNextPageSearchFunction(client: RumpusCE, page: ResultsPage, nextLink: string | undefined, query: query, options: options, search: SearchFunction): ResultsPage; export {}; //# sourceMappingURL=paging.d.ts.map