import { ERC20Token } from '../../types/token.types';
export declare const ethToWei: (amount: string) => bigint;
export declare const randomBigInt: (numberOfBytes: number) => bigint;
export declare const getAmountInToken: (token: ERC20Token, amount: bigint) => string;
export declare const getAmountInWei: (token: ERC20Token, amount: string) => bigint;
/**
 * Convert a decimal number into bigint through string method and return a bigint and number of decimal places.
 * @param decimal
 * @returns a tuple of [ theBigInt, numberOfDecimalPlaces]
 */
export declare const toBigIntWithDecimals: (decimal: number) => [bigint, number];
/** Return getAmountInWei or 0 if error */
export declare const getAmountInWeiOrZero: (token: ERC20Token, amount: string) => bigint;
export declare const getAmountWithPrecision: (balance: bigint, token: ERC20Token, precision: number) => string;
export declare const calculateDollarValue: (token: ERC20Token, tokenAmount: bigint, tokenPriceDollar: number, precision: number) => {
    totalValueDollarsBigInt: bigint;
    precision: number;
};
/** Returns same as getAmountWithPrecision but '0' if empty */
export declare const getAmountWithPrecisionOrZero: (token: ERC20Token | undefined, amount: bigint | undefined) => string;
