@authereum/bnc-onboard
Version:
Onboard users to web3 by allowing them to select a wallet, get that wallet ready to transact and have access to synced wallet state.
18 lines (17 loc) • 1.13 kB
TypeScript
import { Initialization, WalletCheckModule, WalletModule, ConfigOptions, WalletCheckModal, WalletInterface, WalletInitOptions } from './interfaces';
export declare function validateType(options: {
name: string;
value: any;
type: string;
optional?: boolean;
}): never | void;
export declare function validateInit(init: Initialization): never | void;
export declare function isWalletModule(obj: any): obj is WalletModule;
export declare function isWalletInit(obj: any): obj is WalletInitOptions;
export declare function validateWallet(obj: WalletModule | WalletInitOptions): never | void;
export declare function isWalletCheckModule(obj: any): obj is WalletCheckModule;
export declare function validateWalletCheckModule(module: WalletCheckModule): void;
export declare function validateConfig(configuration: ConfigOptions): never | void;
export declare function validateModal(modal: WalletCheckModal): never | void;
export declare function validateWalletInterface(walletInterface: WalletInterface): never | void;
export declare function validateWalletInit(walletInit: WalletInitOptions): void | never;