/* Generated by ts-generator ver. 0.0.8 */
/* tslint:disable */

import Contract, { CustomOptions, contractOptions } from "web3/eth/contract";
import { TransactionObject, BlockType } from "web3/eth/types";
import { Callback, EventLog } from "web3/types";
import { EventEmitter } from "events";
import { Provider } from "web3/providers";

export class MultiCall {
  constructor(jsonInterface: any[], address?: string, options?: CustomOptions);
  _address: string;
  options: contractOptions;
  methods: {
    getEthBalance(addr: string): TransactionObject<string>;

    getBlockHash(blockNumber: number | string): TransactionObject<string>;

    aggregate(
      calls: { target: string; callData: (string | number[])[] }[]
    ): TransactionObject<{
      blockNumber: string;
      returnData: string[][];
      0: string;
      1: string[][];
    }>;

    getLastBlockHash(): TransactionObject<string>;
    getCurrentBlockTimestamp(): TransactionObject<string>;
    getCurrentBlockDifficulty(): TransactionObject<string>;
    getCurrentBlockGasLimit(): TransactionObject<string>;
    getCurrentBlockCoinbase(): TransactionObject<string>;
  };
  deploy(options: {
    data: string;
    arguments: any[];
  }): TransactionObject<Contract>;
  events: {
    allEvents: (
      options?: {
        filter?: object;
        fromBlock?: BlockType;
        topics?: (null | string)[];
      },
      cb?: Callback<EventLog>
    ) => EventEmitter;
  };
  getPastEvents(
    event: string,
    options?: {
      filter?: object;
      fromBlock?: BlockType;
      toBlock?: BlockType;
      topics?: (null | string)[];
    },
    cb?: Callback<EventLog[]>
  ): Promise<EventLog[]>;
  setProvider(provider: Provider): void;
  clone(): MultiCall;
}
