import type { Result } from "./result.ts"; export type CursorPage = Readonly<{ items: readonly Value[]; nextCursor: string | null; hasMore: boolean; snapshotToken: string | null; }>; export type CursorPaginationProfile = Readonly<{ profileId: string; maxPages: number; maxTotalItems: number; maxEstimatedBytes: number; maxCursorBytes: number; allowSparsePage: boolean; }>; export type CursorPaginationRuntime = Readonly<{ loadAll(context: Readonly<{ signal?: AbortSignal }>): Promise< Result >; }>;