/** * Satoshis Primitive */ export declare class Satoshis { readonly satoshis: bigint; /** * Construct a new instance of Satoshis. * * This is the same as using fromSatoshis(). * * @param satoshis {number} The satoshi amount. */ constructor(satoshis: bigint | number); /** * Instantiates from a Satoshi Amount. * * @param satoshis {number} The Satoshi amount. * * @returns {Satoshis} New instance of Satoshis. */ static fromSats(satoshis: bigint | number): Satoshis; /** * Instantiates from a Satoshi Amount. * * @param satoshis {number} The Satoshi amount. * * @deprecated Use fromSats() instead. * * @returns {Satoshis} New instance of Satoshis. */ static fromSatoshis(satoshis: bigint | number): Satoshis; /** * Instantiates from a Bits Amount (100 satoshis = 1 bit). * * @param bits {number} The Bits amount. * * @returns {Satoshis} New instance of Satoshis. */ static fromBits(bits: number): Satoshis; /** * Instantiates from a mBCH Amount (100,000 satoshis = 1 mBCH). * * @param mBCH {number} The mBCH amount. * * @returns {Satoshis} New instance of Satoshis. */ static fromMBCH(mBCH: number): Satoshis; /** * Instantiates from a BCH Amount (100,000,000 satoshis = 1 BCH). * * @param bch {number} The BCH amount. * * @returns {Satoshis} New instance of Satoshis. */ static fromBCH(bch: number): Satoshis; /** * Rounds a number to the given number of digits. * * @param numberToRound {number} The number to round. * @param digits {number} The number of digits to round to. * * @returns {Number} The rounded number. */ static roundToDigits(numberToRound: number, digits: number): number; /** * Converts the amount to Satoshis (as a BigInt). * * @returns {bigint} The satoshi amount. */ toBigInt(): bigint; /** * Converts the amount to Satoshis. * * @returns {number} The satoshi amount. */ toSats(): number; /** * Converts the amount to Satoshis. * * @deprecated Use toSats() instead. * * @returns {number} The satoshi amount. */ toSatoshis(): number; /** * Converts the amount to Bits (100 satoshis = 1 bit). * * @returns {number} The bit amount. */ toBits(): number; /** * Converts the amount to mBCH (100,000 satoshis = 1 mBCH). * * @returns {number} The mBCH amount. */ toMBCH(): number; /** * Converts the amount to BCH (100,000,000 satoshis = 1 BCH). * * @returns {number} The BCH amount. */ toBCH(): number; }