import { ReplicantLite } from "@playpass/replicant-lite"; import { IDBStorage } from "./idb-storage"; import type { Storage } from "./storage"; /** * A storage backed by replicant, or in browser local storage while the user doesn't have an * account. After registering an account, any progress is transfered to the replicant backend. */ export declare class CloudStorage implements Storage { private localStorage; private replicantClient?; constructor(localStorage: IDBStorage); onLogin(replicantClient: ReplicantLite): Promise; set(key: string, value: unknown): Promise; get(key: string): Promise; remove(key: string): Promise; }