import { BigNumber } from 'ethers'; export declare function isAddress(value: string): string | false; export declare function copyToClipboard(textToCopy: string): Promise; export declare function isSameTokenAddress(chainId: number, tokenAAddress: string | undefined, tokenBAddress: string | undefined): boolean; export declare const getFormattedAmount: (amount: BigNumber, precision?: number, shouldCut?: boolean) => string; /** * Get balance amount from a decimal amount * @example 1234500000000000000 => 1.2345 * @param amount The amount to convert * @param decimals The decimals of the token * @returns */ export declare const getBalanceAmount: (amount: BigNumber, decimals: number) => BigNumber; /** * Get decimal amount from a balance amount * @example 1.2345 => 1234500000000000000 * @param amount The amount to convert * @param decimals The decimals of the token * @returns */ export declare const getDecimalAmount: (amount: BigNumber, decimals: number) => BigNumber; export declare const getUSDValue: (tokenToEthRate: string, amount: string, decimals: number, nativePrice: number | undefined) => number | "0"; export declare const getMinReceived: (price: string, amount: string, decimals: number | undefined) => string; export declare const getUSDGas: (gasLimit: string, gasPrice: string, nativePrice: number | undefined) => string; export declare const transformNative: (token: string, chainId: number) => string; export declare const convertError: (str: string) => string; /** * Translates a technical error message to a more user-friendly message. * If the error message is not in the map, returns a generic error message. * @param error The technical error message. * @returns The user-friendly error message. */ export declare const translateErrorMessage: (error: string) => string; //# sourceMappingURL=index.d.ts.map