declare module 'bn.js' { class BN { constructor(value: string | number, radix?: number); toString(radix: number): string; toNumber(): number; add(other: BN): BN; sub(other: BN): BN; mul(other: BN): BN; div(other: BN): BN; pow(other: BN): BN; gt(other: BN): BN; lt(other: BN): BN; eq(other:BN): boolean; isZero(): boolean; static min(... args: Array): BN; static max(... args: Array): BN; } export = BN; }