@coinmeca/wallet-sdk
Version:
33 lines • 1 kB
TypeScript
export declare const storage: (data?: Record<string, string>, options?: {
codename?: string;
salt?: string;
emit?: Function;
}) => {
set: (key: string, value: any) => void;
get: (key: string) => any;
remove: (key: string) => void;
clear: () => void;
};
export declare class CoinmecaSecureStorage {
#private;
constructor(storage: any, key?: string, options?: {
codename?: string;
salt?: string;
emit?: Function;
});
ready(): void;
set(key: string, value: any): void;
get(key: string): any;
remove(key: string): void;
clear(): void;
import(storage?: any): void;
export(): Record<string, string>;
secure(salt?: string): {
set: (key: string, value: any) => void;
get: (key: string) => any;
remove: (key: string) => void;
clear: () => void;
};
}
export declare function getSecureStorage(storage: any, ...args: any): CoinmecaSecureStorage;
//# sourceMappingURL=storage.d.ts.map