export interface ICertResponse { /** 证书内容 */ cert?: string; /** 证书序列号 */ certSn?: number; /** issueCertSn */ issueCertSn?: number; /** 过期时间 */ expirationDate?: number; } export interface LocalStorageAddressObject { pemPrivateKey: string; pemPublicKey: string; pemCertificate: ICertResponse; /** 助记词 */ mnemonic: string; /** 地址 */ address: string; /** 钱包名字 */ walletName: string; } export type LocalStorageKeysG = { /** 密钥 */ password: string; /** 地址 */ addressList: string[]; /** getCommon已选择的地址 */ selectedAddress: string; }; export declare class LocalStorage { static setG(key: K, value: LocalStorageKeysG[K]): Promise; static getG(key: K): Promise; static getItemByAddress(key: K, address: string): Promise; static set(item: LocalStorageAddressObject): Promise; static get(address: string): Promise; static remove(address: string): Promise; }