export type CursorPage = { success: true; items: T[]; cursor?: string; } | { success: false; error: string; }; export type CursorPaginationResult = { success: true; items: T[]; nextCursor?: string; } | { success: false; error: string; items?: T[]; nextCursor?: string; }; export declare function paginateCursor(opts: { cursor?: string; maxPages?: number; pageDelayMs?: number; sleep: (ms: number) => Promise; getKey: (item: T) => string; fetchPage: (cursor?: string) => Promise>; }): Promise>; //# sourceMappingURL=paginate-cursor.d.ts.map