import type { BigNumberish } from "@ethersproject/bignumber"; import type { BigNumber } from "ethers"; export declare function toTitleCase(str: string): string; /** * Formats a number or number string into a pretty USD string * @example * formatUSD(-1234567.89) // "-$1,234,567.89" */ export declare function formatUSD(amount: number | string): string; /** * A globally unique ID generator, useful for stateless or readonly things * @returns * uuid/v1, in case we need to extract the timestamp when debugging */ export declare function generateUniqueId(): string; export declare function isMobile(): boolean; /** * True if we're in the mobile environment. */ export declare const IS_MOBILE: boolean; export declare function isServiceWorker(): boolean; /** * Make any necessary changes to URIs before the client queries them. * * TODO: replace host with host of caching layer for thumbnail generation, caching, * SVG sanitization, etc. */ export declare function externalResourceUri(uri: string, options?: { cached?: boolean; }): string; export declare function proxyImageUrl(url: string): string; export declare function toDisplayBalance(nativeBalance: BigNumber, decimals: BigNumberish, truncate?: boolean): string; //# sourceMappingURL=utils.d.ts.map