import type { RefObject } from 'react'; import type { WalletProps } from '../hooks/useWalletsProps'; export { detectBrowser, detectOS, isAndroid, isIOS, isMobile } from './detect'; export declare const defaultTokenIcon = "https://static.particle.network/token-list/defaultToken/default.png"; interface ElementDimensions { width: number; height: number; topDistance: number; bottomDistance: number; } export declare const truncateEthAddress: (address?: string, separator?: string) => string; export declare const isWalletConnectConnector: (connectorId?: string) => boolean; export declare function hexToRgba(hex: string, alpha: number): string; export declare const shortAddress: (address: string | undefined | null) => string; /** * Copy text to clipboard * @param {string} text * @returns {Promise} */ export declare function copyToClipboard(text: string): Promise; export declare const openMobileUrl: (url: string) => void; export declare const hasPCDownloadUrl: (walletProps: WalletProps) => boolean; export declare function getElementDimensionsRelativeToParent(ref: RefObject): ElementDimensions | null; export declare function getBuyUrl(chainId?: number, address?: string, currency?: string, theme?: string, language?: string): string; export declare function popupWindow(url: string, title: string, w: number, h: number): Window | null; export declare const roundToEven: (value: number) => number; /** * Judge whether the user is registering a passkey for the first time * @returns {boolean} True if it's the first time, false otherwise */ export declare const isFirstRegisterPasskey: () => boolean; /** * Set that the user has completed passkey registration */ export declare const setFirstRegisterPasskey: () => void;