export interface CursorSortEntry { key: K; direction: "asc" | "desc"; } export type CursorSortValue = string | number | null; export interface DecodedCursor { sort: CursorSortEntry[]; values: Record; id: string; } export declare class CursorError extends Error { constructor(message: string); } export declare function encodeCursor(entry: E, sort: readonly CursorSortEntry[], getId: (entry: E) => string, getValue: (entry: E, key: K) => CursorSortValue): string; export declare function decodeCursor(cursor: string, sort: readonly CursorSortEntry[], validKeys: readonly K[], label: string): DecodedCursor; //# sourceMappingURL=cursor.d.ts.map