export interface JSONSerializer { toJSON(input: T): U; } export interface BigNumberJSON { _hex: string; _isBigNumber: true; }