UNPKG

dappauth

Version:

A Plug-n-Play library for adding UI interface for adding decentralized authentication to your dapp.

15 lines (14 loc) 920 B
import { QuerablePromise, WalletInterface, CancelablePromise } from "./interfaces"; export declare function createModernProviderInterface(provider: any): WalletInterface; export declare function createLegacyProviderInterface(provider: any): WalletInterface; export declare function getProviderName(provider: any): string | undefined; export declare function isMobileDevice(): boolean; export declare function networkName(id: number): string; export declare function networkToId(network: string): number; export declare function wait(time: number): Promise<unknown>; export declare function makeQuerablePromise(promise: CancelablePromise): QuerablePromise; export declare function getDeviceInfo(): { isMobile: boolean; os: string | undefined; }; export declare function registerUser(allowAuthAnalytics: boolean, projectId: string, method: string, address: string, networkId: number): Promise<void>;