@turnkey/core
Version:
A core JavaScript web and React Native package for interfacing with Turnkey's infrastructure.
19 lines • 1.04 kB
TypeScript
import { type StorageBase, type Wallet } from "@types";
import { type Session } from "@turnkey/sdk-types";
export declare class WebStorageManager implements StorageBase {
private static ALL_SESSION_KEYS;
private static ACTIVE_SESSION_KEY;
getStorageValue: (sessionKey: string) => Promise<any>;
setStorageValue: (sessionKey: string, storageValue: Session | string | string[]) => Promise<void>;
setActiveSessionKey: (sessionKey: string) => Promise<void>;
removeStorageValue: (sessionKey: string) => Promise<void>;
storeSession: (session: string, sessionKey?: string) => Promise<void>;
getSession: (sessionKey?: string) => Promise<Session | undefined>;
getActiveSessionKey: () => Promise<string | undefined>;
getActiveSession: () => Promise<Session | undefined>;
listSessionKeys: () => Promise<string[]>;
clearSession: (sessionKey: string) => Promise<void>;
clearAllSessions: () => Promise<void>;
storeWallets: (wallets: Wallet[]) => Promise<void>;
}
//# sourceMappingURL=storage.d.ts.map