import { BigNumberish } from "starknet"; import { BigDecimal } from "./types"; /** * Formats a BigInt representing wei into a string representing ether, * with a precision of 18 decimal places. * * { * wei: bigint, * decimals: 18 * } * * @param {bigint} wei - The amount in wei to be formatted to ether. * @returns {string} The amount in ether. */ export declare function formatEther(wei: bigint): string; /** * Parses a string representing ether into a BigInt representing wei. * * @param {string} ether - The amount in ether to be parsed to wei. * @returns {bigint} The amount in wei. */ export declare function parseEther(ether: string): BigDecimal; /** * Formats a BigInt representing a currency amount into a string, * with a precision of 18 decimal places. * * { * amount: bigint, * decimals: 18 * } * * @param {bigint} value - The amount to be formatted. * @returns {string} The formatted amount. */ export declare function formatCurrency(value: bigint): string; /** * Parses a string representing a currency amount into a BigInt. * * @param {string} amount - The amount to be parsed. * @returns {bigint} The parsed amount. */ export declare function parseCurrency(amount: string): BigDecimal; /** * Computes the absolute value of a BigInt. * * @param {bigint} num - The number to be converted to its absolute value. * @returns {bigint} The absolute value of the number. */ export declare function absBigInt(num: bigint): bigint; /** * Parses a string representing a currency amount into a BigInt, and * then returns its absolute value. * * @param {string} amount - The amount to be parsed and then converted to absolute value. * @returns {bigint} The absolute value of the parsed amount. */ export declare function parseCurrencyAbs(amount: string): BigDecimal; /** * Converts a BigNumberish to a BigDecimal. * * This is unsafe, please use with caution. * @param {BigNumberish} value - The number to be converted to a BigDecimal. * @returns {BigDecimal} The converted number. */ export declare function toBigDecimal(value: BigNumberish, decimals: number): BigDecimal;