declare module "bn.js" { export class BN { constructor(value: string | number, radix?: number); add(other: BN): BN; sub(other: BN): BN; div(other: BN): BN; mod(other: BN): BN; mul(other: BN): BN; pow(other: BN): BN; maskn(other: number): BN; eq(other: BN): boolean; lt(other: BN): boolean; lte(other: BN): boolean; gt(other: BN): boolean; gte(other: BN): boolean; isZero(): boolean; toTwos(other: number): BN; fromTwos(other: number): BN; toString(radix: number): string; toNumber(): number; toArray(endian: string, width: number): Uint8Array; encode(encoding: string, compact: boolean): Uint8Array; } }