import { IWalletConnectSession } from "@perawallet/walletconnect"; import { PeraWalletDetails, PeraWalletPlatformType } from "../peraWalletTypes"; declare function getLocalStorage(): Storage | undefined; declare function saveWalletDetailsToStorage(accounts: string[], type?: "pera-wallet" | "pera-wallet-web" | "pera-wallet-extension"): void; declare function getWalletDetailsFromStorage(): PeraWalletDetails | null; declare function getWalletConnectObjectFromStorage(): IWalletConnectSession | null; declare function resetWalletDetailsFromStorage(): Promise; /** * One-time, best-effort migration of a Pera session persisted by earlier * versions under the WalletConnect v1 default key ("walletconnect"), which is * shared with every other WC v1 wallet on the same origin. * * The legacy value is MOVED to the namespaced key only when it is clearly ours: * the stored Pera wallet details are for the mobile wallet and their accounts * match the session's accounts exactly. Anything else is left untouched so a * co-installed wallet's session is never clobbered. Never throws. */ declare function migrateLegacyWalletConnectSession(): void; declare function getWalletPlatformFromStorage(): PeraWalletPlatformType; export { getLocalStorage, saveWalletDetailsToStorage, resetWalletDetailsFromStorage, getWalletDetailsFromStorage, getWalletConnectObjectFromStorage, getWalletPlatformFromStorage, migrateLegacyWalletConnectSession };