type Left = { error: T; result?: never; }; type Right = { error?: never; result: U; }; export type Either = NonNullable | Right>; export type ConversionMode = 'buffer' | 'atob-btoa'; export declare const base64urlToString: (base64url: string, mode?: ConversionMode) => string; export declare const stringToBase64url: (value: string, mode?: ConversionMode) => string; /** * Encodes JSON object to base64url * Compatible with both browser and node envs */ export declare const encodeCursor: (object: Record) => string; /** * Decodes base64url to JSON object * Compatible with both browser and node envs */ export declare const decodeCursor: (value: string) => Either>; export {};