@turnkey/core
Version:
A core JavaScript web and React Native package for interfacing with Turnkey's infrastructure.
14 lines • 789 B
TypeScript
import type { TWalletManagerConfig, WalletManagerBase } from "@types";
/**
* Creates and initializes a wallet manager instance based on the runtime environment.
*
* - If the environment is React Native, it creates and initializes a `MobileWalletManager`.
* - If the environment is Web, it creates and initializes a `WebWalletManager`.
* - Throws an error if the environment is neither supported.
*
* @param cfg - Configuration object used to initialize the wallet manager.
* @returns A promise that resolves to an initialized `WalletManagerBase` instance.
* @throws {Error} If the environment is not supported (neither React Native nor Web).
*/
export declare function createWalletManager(cfg: TWalletManagerConfig): Promise<WalletManagerBase>;
//# sourceMappingURL=base.d.ts.map