UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

19 lines • 754 B
import type { DiscordAccessor } from '../../accessor/discord.ts'; export declare function afterIdPages<T extends Record<string, unknown>>(accessor: DiscordAccessor, opts: { endpoint: string; baseParams?: Record<string, string | number>; lastIdFn: (item: Record<string, unknown>) => string; pageSize?: number; startAfter?: string; newestFirst?: boolean; }): AsyncIterableIterator<T[]>; export declare function offsetPages<T>(accessor: DiscordAccessor, opts: { endpoint: string; baseParams?: Record<string, string | number>; itemsPath: readonly string[]; totalKey?: string; pageSize?: number; startOffset?: number; maxPages?: number; }): AsyncIterableIterator<T[]>; //# sourceMappingURL=paginate.d.ts.map