import type { PageFetch } from '../../types.ts'; /** * Collect every item from a cursor-paginated endpoint. * * The reply protocol is the `results` / `has_more` / `next_cursor` shape * (Notion's). Where the resume cursor goes on the request — a * `start_cursor` body field, a query parameter — is the caller's, so * `fetchPage` owns that merge. Pagination stops when the reply stops * claiming more, or claims more without a usable cursor. `maxResults` * stops early and slices the tail of the last page. */ export declare function cursorItems(fetchPage: PageFetch, maxResults?: number): Promise; //# sourceMappingURL=paginate.d.ts.map