import Buffer from 'buffer'; import { Interface } from "ethers/utils"; type NestedArray = T | NestedArray[]; export interface InputData { method: string | null; types: string[]; inputs: any[]; names: NestedArray[]; } export default class InputDataDecoder { constructor(abi: string | Interface['abi']); decodeConstructor(data: Buffer | string): InputData; decodeData(data: Buffer | string): InputData; }