import { IListState } from "./State.js";
/**
 * A class that serializes and deserializes the pagination cursor.
 */
export declare class Cursor {
    /**
     * Reads the cursor received from the client by decrypting its contents.
     * It throws an error when the cursor is invalid
     */
    decodeCursor(cursor: string): Promise<IListState>;
    /**
     * Encodes the state into a cursor.
     * @param state The list state.
     * @returns The encoded (base64) cursor.
     */
    encodeCursor(state: object): Promise<string>;
}
//# sourceMappingURL=Cursor.d.ts.map