export interface Entity { id: string; created_at: string; updated_at: string; } export interface CursorPaginationOptions { filter?: (item: T) => boolean; sort?: (a: T, b: T) => number; limit?: number; order?: 'asc' | 'desc'; before?: string; after?: string; } export interface CursorPaginatedResult { data: T[]; list_metadata: { before: string | null; after: string | null; }; } export declare function parseListParams(url: URL): { limit: number; order: "asc" | "desc"; before: string | undefined; after: string | undefined; }; /** * Reads an array query parameter the way production does. Production parses the query with `qs` * and splits a scalar on commas, so it takes `name=a,b`, repeated `name=` (workos-go, -node, * -ruby), `name[]=` (workos-dotnet) and indexed `name[0]=` (workos-php). */ export declare function parseArrayParam(url: URL, name: string): string[]; export declare function cursorPaginate(items: T[], options?: CursorPaginationOptions): CursorPaginatedResult;