import { IUserInfo } from '../store/context'; import { BTCAddressType, ChainType, SocialType, WalletType } from '../wallets/client/IWallet'; export declare function getDefaultAvatar(email: string | null | undefined): string; export declare function getChainLogoImg(chain: ChainType, isLight?: boolean): string; export declare function getChainImg(chain: ChainType, isLight?: boolean): string; export declare function getSocialImg(social: "twitter" | "discord" | "telegram"): string; export declare function getWalletImg(wallet: WalletType, isLight?: boolean): string; export declare function abbrAddress(addr: string): string; export declare function uploadImg(body: { file: any; }, options?: { [key: string]: any; }): Promise; export declare function linkSocial(type: SocialType, taskType?: string): void; export declare function removeSearchParamsShallow(keys: string[], url?: string): void; export declare function isIOS(): boolean; export declare function isAndroid(): boolean; export declare function isMobile(): boolean; export declare function isMetaMaskMobile(): boolean; export declare function isBitgetMobile(): boolean; export declare function isOkxMobile(): boolean; export declare function isBinanceMobile(): boolean; export declare function isSuiWalletMobile(): boolean; export declare function isGateWalletMobile(): boolean; export declare function isTrustWalletMobile(): boolean; export declare function isTG(): boolean; export declare function isUserLinkBTC(user?: IUserInfo): boolean; /** * 获取当前账户绑定的btc地址类型数量 * @param user * @returns */ export declare function getUserLinkedBTCAddressTypeNum(user?: IUserInfo): number; /** * 获取btc绑定的主地址 * @param user * @returns */ export declare function getUserBTCLinkedMainAddress(user?: IUserInfo): { address: string; type: BTCAddressType; } | { address?: undefined; type?: undefined; }; /** * 获取btc绑定的除主地址外的其他地址 * @param user * @returns */ export declare function getUserBTCLinkedOtherAddress(user?: IUserInfo): { address: string; type: BTCAddressType; }[]; export declare function waitTime(timeMs: number): Promise; export declare function isEmail(email: string): boolean; export declare function strToHex(str: string, with0xPrefix?: boolean): string; export declare function strToUint8Array(str: string): Uint8Array; export declare function validatePassword(password: string): boolean;