import { Numeric } from '../types'; export declare class Amount { static readonly ZERO = "0"; static readonly ONE_YOCTO = "1"; private constructor(); private static unitsToDecimals; /** * Parse from specific units and return a fixed string * @example * const rawAmount = Amount.parse('5', 'NEAR'); // '5000000000000000000000000' * @param amount human readable amount * @param units units */ static parse(amount: Numeric, units: AmountUnits): string; /** * Format in specific units and return a fixed string * @example * const humanReadableAmount = Amount.format('5000000000000000000000000', 'NEAR'); // '5' * @param amount raw amount * @param units units * @param decimalPlaces decimal places */ static format(amount: Numeric, units: AmountUnits, decimalPlaces?: number): string; } export type AmountUnits = 'NEAR' | 'USDT' | 'USDC' | 'BTC' | 'ETH' | number;