import { BigNumber , BigNumberish } from "ethers/utils" ; declare global { namespace jest { interface Matchers < R > { toBeEq ( expected ) : BigNumber ; toBeLt ( expected ) : BigNumber ; } } } export function toBeEq ( received , argument ) { const pass = received . eq ( argument ) ; return { pass , message : ( ) => `expected ${ received } to ${ pass ? "not " : "" }be equal to ${ argument }` } ; } export function toBeLt ( received , argument ) { const pass = received . lt ( argument ) ; return { pass , message : ( ) => `expected ${ received } to ${ pass ? "not " : "" }be less than ${ argument }` } ; }