UNPKG

biuauthui

Version:
30 lines (29 loc) 1.45 kB
/// <reference types="node" /> import { OPENLOGIN_NETWORK_TYPE } from "@toruslabs/openlogin-utils"; import { IAdapter, LoginMethodConfig } from "@web3auth/base"; export declare const getAdapterSocialLogins: (adapterName: string, adapter: IAdapter<unknown>, loginMethodsConfig?: LoginMethodConfig) => LoginMethodConfig; export declare function validateImageUrl(url: string): Promise<boolean>; export declare function getNetworkIconId(ticker: string): Promise<string>; export declare const getPasswordlessBackendUrl: (web3AuthNetwork: OPENLOGIN_NETWORK_TYPE) => string; export declare const getUserCountry: (web3AuthNetwork: OPENLOGIN_NETWORK_TYPE) => Promise<{ country: string; dialCode: string; } | null>; export declare const validatePhoneNumber: (phoneNumber: string, web3AuthNetwork: OPENLOGIN_NETWORK_TYPE) => Promise<string | boolean>; export declare const languageMap: { en: string; de: string; ja: string; ko: string; zh: string; es: string; fr: string; pt: string; nl: string; }; export declare function handleFixIpfs(img?: string): string; export declare function isNft(contract?: string): boolean; export declare const handleGetImageUrl: (url: string) => string; export declare function normalizeHexAddress(address: string | Buffer): string; export declare function isProbablyEVMAddress(str: string | undefined): boolean; export declare function truncateAddress(address: string | undefined): string;