UNPKG

@web3auth-mpc/ui

Version:
27 lines (26 loc) 1.1 kB
import "../css/web3auth.css"; import { SafeEventEmitter } from "@toruslabs/openlogin-jrpc"; import { BaseAdapterConfig, LoginMethodConfig, WALLET_ADAPTER_TYPE } from "@web3auth-mpc/base"; import { UIConfig } from "./interfaces"; declare class LoginModal extends SafeEventEmitter { private uiConfig; private stateEmitter; constructor(uiConfig: UIConfig); get isDark(): boolean; initModal: () => Promise<void>; addSocialLogins: (adapter: WALLET_ADAPTER_TYPE, loginMethods: LoginMethodConfig, loginMethodsOrder: string[], uiConfig: Omit<UIConfig, "adapterListener">) => void; addWalletLogins: (externalWalletsConfig: Record<string, BaseAdapterConfig>, options: { showExternalWalletsOnly: boolean; }) => void; open: () => void; closeModal: () => void; initExternalWalletContainer: () => void; private handleShowExternalWallets; private handleExternalWalletClick; private handleSocialLoginClick; private setState; private updateWalletConnect; private handleAdapterData; private subscribeCoreEvents; } export default LoginModal;