import { Numeric } from '../types'; export declare class Gas { static readonly DEFAULT = "30000000000000"; private constructor(); private static unitsToDecimals; /** * Parse from specific units and return a fixed string * @example * const rawGas = Gas.parse('5', 'T'); // '5000000000000' * @param gas human readable gas * @param units units */ static parse(gas: Numeric, units: GasUnits): string; /** * Format in specific units and return a fixed string * @example * const humanReadableGas = Gas.format('5000000000000', 'T'); // '5' * @param gas raw gas * @param units units * @param decimalPlaces decimal places */ static format(gas: Numeric, units: GasUnits, decimalPlaces?: number): string; } export type GasUnits = 'T' | 'G' | 'M' | 'K' | number;