import BN from 'bn.js'; import { BNWrapper } from './bn'; export declare class Gas extends BNWrapper { /** * Converts a BN, number, or string in gas units to Gas. * * @example * ```ts * const gas = Gas.from(new BN("10000000")) * const gas2 = Gas.from('1 TGas') * ``` */ static from(bn: BN | number | string): Gas; /** * Convert human readable gas amount to internal indivisible units. * * @example * ```ts * Gas.parse('1') // => Gas<'1'> (1 gas) * Gas.parse('1 Tgas') // => Gas<'1000000000000'> (1e12 gas) * Gas.parse('1 Ggas') // => Gas<'1000000000'> (1e9 gas) * ``` * * @param x decimal string denominated in gas, Tgas, Ggas, etc. * @returns new Gas object wrapping the parsed amount */ static parse(x: string): Gas; /** * Convert to string such as "53 Tgas" or "900 Ggas" * @returns string showing gas amount in a human-readable way */ toHuman(): string; protected from(bn: BN | number | string): Gas; }