import { BigintIsh, Rounding } from '../constants'; import BN from 'bn.js'; export declare class Fraction { readonly numerator: BN; readonly denominator: BN; constructor(numerator: BigintIsh, denominator?: BigintIsh); private static tryParseFraction; get quotient(): BN; get remainder(): Fraction; invert(): Fraction; add(other: Fraction | BigintIsh): Fraction; subtract(other: Fraction | BigintIsh): Fraction; multiply(other: Fraction | BigintIsh): Fraction; divide(other: Fraction | BigintIsh): Fraction; lt(other: Fraction | BigintIsh): boolean; eq(other: Fraction | BigintIsh): boolean; gt(other: Fraction | BigintIsh): boolean; toFixed(decimalPlaces: number, format?: object, rounding?: Rounding): string; /** * Helper method for converting any super class back to a fraction */ get asFraction(): Fraction; static max(...n: Fraction[]): Fraction; static min(...n: Fraction[]): Fraction; }