@web3auth/modal
Version:
Multi chain wallet aggregator for web3Auth
37 lines (36 loc) • 1.46 kB
TypeScript
import "./css/index.css";
import { type BaseConnectorConfig, type LoginMethodConfig, type WALLET_CONNECTOR_TYPE } from "@web3auth/no-modal";
import { browser, LoginModalCallbacks, LoginModalProps, os, platform, UIConfig } from "./interfaces";
export declare class LoginModal {
private uiConfig;
private stateEmitter;
private chainNamespaces;
private walletRegistry;
private callbacks;
private externalWalletsConfig;
private analytics;
constructor(uiConfig: LoginModalProps, callbacks: LoginModalCallbacks);
get isDark(): boolean;
get deviceDetails(): {
platform: platform;
browser: browser;
os: os;
};
initModal: () => Promise<void>;
addSocialLogins: (connector: WALLET_CONNECTOR_TYPE, loginMethods: LoginMethodConfig, loginMethodsOrder: string[], uiConfig: Omit<UIConfig, "connectorListener">) => void;
addWalletLogins: (externalWalletsConfig: Record<string, BaseConnectorConfig>, options?: {
externalWalletsInitialized: boolean;
externalWalletsVisibility: boolean;
showExternalWalletsOnly: boolean;
}) => void;
open: () => void;
closeModal: () => void;
initExternalWalletContainer: () => void;
private handleShowExternalWallets;
private handleExternalWalletClick;
private handleMobileVerifyConnect;
private handleSocialLoginClick;
private setState;
private handleConnectorData;
private subscribeCoreEvents;
}