import { Coin } from './Coin'; import BN from 'bn.js'; import { BigintIsh, Rounding } from '../constants'; import { Fraction } from './Fraction'; export declare class CoinAmount extends Fraction { readonly coin: T; readonly decimalScale: BN; /** * Returns a new currency amount instance from the unitless amount of token, i.e. the raw amount * @param coin the currency in the amount * @param rawAmount the raw token or ether amount */ static fromRawAmount(coin: T, rawAmount: BigintIsh): CoinAmount; /** * Construct a currency amount with a denominator that is not equal to 1 * @param coin the currency * @param numerator the numerator of the fractional token amount * @param denominator the denominator of the fractional token amount */ static fromFractionalAmount(coin: T, numerator: BigintIsh, denominator: BigintIsh): CoinAmount; static ONE(coin: T): CoinAmount; protected constructor(coin: T, numerator: BigintIsh, denominator?: BigintIsh); add(other: CoinAmount): CoinAmount; subtract(other: CoinAmount): CoinAmount; multiply(other: Fraction | BigintIsh): CoinAmount; divide(other: Fraction | BigintIsh): CoinAmount; toFixed(decimalPlaces?: number, format?: object, rounding?: Rounding): string; toExact(format?: object): string; }