UNPKG

@web3auth-mpc/ui

Version:
14 lines (13 loc) 839 B
import { LANGUAGE_TYPE } from "@toruslabs/openlogin-utils"; import { LoginMethodConfig } from "@web3auth-mpc/base"; export declare const getAdapterSocialLogins: (adapterName: string, loginMethodsConfig?: LoginMethodConfig) => LoginMethodConfig; export declare function validateImageUrl(url: string): Promise<boolean>; export declare function getNetworkIconId(ticker: string): Promise<string>; export declare const passwordlessBackendUrl = "https://api-passwordless.web3auth.io"; export declare const getUserCountry: () => Promise<{ country: string; dialCode: string; } | null>; export declare const validatePhoneNumber: (phoneNumber: string) => Promise<string | boolean>; export declare const languageMap: Record<LANGUAGE_TYPE, string>; export declare const getUserLanguage: (defaultLanguage: string | undefined) => LANGUAGE_TYPE;