/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */

import {
  ethers,
  EventFilter,
  Signer,
  BigNumber,
  BigNumberish,
  PopulatedTransaction,
  BaseContract,
  ContractTransaction,
  Overrides,
  CallOverrides,
} from "ethers";
import { BytesLike } from "@ethersproject/bytes";
import { Listener, Provider } from "@ethersproject/providers";
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
import type { TypedEventFilter, TypedEvent, TypedListener } from "./common";

interface MerkleForestMockInterface extends ethers.utils.Interface {
  functions: {
    "FIELD_SIZE()": FunctionFragment;
    "ROOT_HISTORY_SIZE()": FunctionFragment;
    "ZERO_VALUE()": FunctionFragment;
    "commitments(uint256)": FunctionFragment;
    "currSubtreeIndex()": FunctionFragment;
    "filledSubtrees(uint256)": FunctionFragment;
    "forestLevels()": FunctionFragment;
    "getHasher()": FunctionFragment;
    "getLastRoot()": FunctionFragment;
    "getLastSubtreeRoot(uint256)": FunctionFragment;
    "getLevels()": FunctionFragment;
    "getNextIndex()": FunctionFragment;
    "getZeroHash(uint32)": FunctionFragment;
    "hashLeftRight(uint256,uint256)": FunctionFragment;
    "hasher()": FunctionFragment;
    "initialized()": FunctionFragment;
    "insert(uint256)": FunctionFragment;
    "insertSubtreeTest(uint32,uint256)": FunctionFragment;
    "insertTest(uint256)": FunctionFragment;
    "insertTwoTest(uint256,uint256)": FunctionFragment;
    "isKnownRoot(uint256)": FunctionFragment;
    "isKnownSubtreeRoot(uint256,uint256)": FunctionFragment;
    "merkleForest()": FunctionFragment;
    "nullifierHashes(uint256)": FunctionFragment;
    "numSubtreeElements()": FunctionFragment;
    "roots(uint256)": FunctionFragment;
    "subtreeLevels()": FunctionFragment;
    "subtrees(uint256)": FunctionFragment;
  };

  encodeFunctionData(
    functionFragment: "FIELD_SIZE",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "ROOT_HISTORY_SIZE",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "ZERO_VALUE",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "commitments",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "currSubtreeIndex",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "filledSubtrees",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "forestLevels",
    values?: undefined
  ): string;
  encodeFunctionData(functionFragment: "getHasher", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "getLastRoot",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "getLastSubtreeRoot",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(functionFragment: "getLevels", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "getNextIndex",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "getZeroHash",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "hashLeftRight",
    values: [BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(functionFragment: "hasher", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "initialized",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "insert",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "insertSubtreeTest",
    values: [BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "insertTest",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "insertTwoTest",
    values: [BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "isKnownRoot",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "isKnownSubtreeRoot",
    values: [BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "merkleForest",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "nullifierHashes",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "numSubtreeElements",
    values?: undefined
  ): string;
  encodeFunctionData(functionFragment: "roots", values: [BigNumberish]): string;
  encodeFunctionData(
    functionFragment: "subtreeLevels",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "subtrees",
    values: [BigNumberish]
  ): string;

  decodeFunctionResult(functionFragment: "FIELD_SIZE", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "ROOT_HISTORY_SIZE",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "ZERO_VALUE", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "commitments",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "currSubtreeIndex",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "filledSubtrees",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "forestLevels",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "getHasher", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "getLastRoot",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getLastSubtreeRoot",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "getLevels", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "getNextIndex",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getZeroHash",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "hashLeftRight",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "hasher", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "initialized",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "insert", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "insertSubtreeTest",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "insertTest", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "insertTwoTest",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "isKnownRoot",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "isKnownSubtreeRoot",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "merkleForest",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "nullifierHashes",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "numSubtreeElements",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "roots", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "subtreeLevels",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "subtrees", data: BytesLike): Result;

  events: {
    "Insertion(uint256,uint32,uint256)": EventFragment;
  };

  getEvent(nameOrSignatureOrTopic: "Insertion"): EventFragment;
}

export type InsertionEvent = TypedEvent<
  [BigNumber, number, BigNumber] & {
    commitment: BigNumber;
    leafIndex: number;
    timestamp: BigNumber;
  }
>;

export class MerkleForestMock extends BaseContract {
  connect(signerOrProvider: Signer | Provider | string): this;
  attach(addressOrName: string): this;
  deployed(): Promise<this>;

  listeners<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter?: TypedEventFilter<EventArgsArray, EventArgsObject>
  ): Array<TypedListener<EventArgsArray, EventArgsObject>>;
  off<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  on<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  once<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  removeListener<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  removeAllListeners<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
  ): this;

  listeners(eventName?: string): Array<Listener>;
  off(eventName: string, listener: Listener): this;
  on(eventName: string, listener: Listener): this;
  once(eventName: string, listener: Listener): this;
  removeListener(eventName: string, listener: Listener): this;
  removeAllListeners(eventName?: string): this;

  queryFilter<EventArgsArray extends Array<any>, EventArgsObject>(
    event: TypedEventFilter<EventArgsArray, EventArgsObject>,
    fromBlockOrBlockhash?: string | number | undefined,
    toBlock?: string | number | undefined
  ): Promise<Array<TypedEvent<EventArgsArray & EventArgsObject>>>;

  interface: MerkleForestMockInterface;

  functions: {
    FIELD_SIZE(overrides?: CallOverrides): Promise<[BigNumber]>;

    ROOT_HISTORY_SIZE(overrides?: CallOverrides): Promise<[number]>;

    ZERO_VALUE(overrides?: CallOverrides): Promise<[BigNumber]>;

    commitments(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[boolean]>;

    currSubtreeIndex(overrides?: CallOverrides): Promise<[number]>;

    filledSubtrees(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

    forestLevels(overrides?: CallOverrides): Promise<[number]>;

    getHasher(overrides?: CallOverrides): Promise<[string]>;

    getLastRoot(overrides?: CallOverrides): Promise<[BigNumber]>;

    getLastSubtreeRoot(
      _subtreeId: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

    getLevels(overrides?: CallOverrides): Promise<[number]>;

    getNextIndex(overrides?: CallOverrides): Promise<[number]>;

    getZeroHash(
      index: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

    hashLeftRight(
      _left: BigNumberish,
      _right: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

    hasher(overrides?: CallOverrides): Promise<[string]>;

    initialized(overrides?: CallOverrides): Promise<[boolean]>;

    insert(
      _leaf: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    insertSubtreeTest(
      _subtreeId: BigNumberish,
      _leaf: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    insertTest(
      _leaf: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    insertTwoTest(
      _leaf1: BigNumberish,
      _leaf2: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    isKnownRoot(
      _root: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[boolean]>;

    isKnownSubtreeRoot(
      _subtreeId: BigNumberish,
      _root: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[boolean]>;

    merkleForest(
      overrides?: CallOverrides
    ): Promise<
      [number, BigNumber, number, number] & {
        maxEdges: number;
        depth: BigNumber;
        currentRootIndex: number;
        numberOfLeaves: number;
      }
    >;

    nullifierHashes(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[boolean]>;

    numSubtreeElements(overrides?: CallOverrides): Promise<[number]>;

    roots(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<
      [BigNumber, number] & { root: BigNumber; latestLeafindex: number }
    >;

    subtreeLevels(overrides?: CallOverrides): Promise<[number]>;

    subtrees(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<
      [number, BigNumber, number, number] & {
        maxEdges: number;
        depth: BigNumber;
        currentRootIndex: number;
        numberOfLeaves: number;
      }
    >;
  };

  FIELD_SIZE(overrides?: CallOverrides): Promise<BigNumber>;

  ROOT_HISTORY_SIZE(overrides?: CallOverrides): Promise<number>;

  ZERO_VALUE(overrides?: CallOverrides): Promise<BigNumber>;

  commitments(arg0: BigNumberish, overrides?: CallOverrides): Promise<boolean>;

  currSubtreeIndex(overrides?: CallOverrides): Promise<number>;

  filledSubtrees(
    arg0: BigNumberish,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  forestLevels(overrides?: CallOverrides): Promise<number>;

  getHasher(overrides?: CallOverrides): Promise<string>;

  getLastRoot(overrides?: CallOverrides): Promise<BigNumber>;

  getLastSubtreeRoot(
    _subtreeId: BigNumberish,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  getLevels(overrides?: CallOverrides): Promise<number>;

  getNextIndex(overrides?: CallOverrides): Promise<number>;

  getZeroHash(
    index: BigNumberish,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  hashLeftRight(
    _left: BigNumberish,
    _right: BigNumberish,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  hasher(overrides?: CallOverrides): Promise<string>;

  initialized(overrides?: CallOverrides): Promise<boolean>;

  insert(
    _leaf: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  insertSubtreeTest(
    _subtreeId: BigNumberish,
    _leaf: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  insertTest(
    _leaf: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  insertTwoTest(
    _leaf1: BigNumberish,
    _leaf2: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  isKnownRoot(_root: BigNumberish, overrides?: CallOverrides): Promise<boolean>;

  isKnownSubtreeRoot(
    _subtreeId: BigNumberish,
    _root: BigNumberish,
    overrides?: CallOverrides
  ): Promise<boolean>;

  merkleForest(
    overrides?: CallOverrides
  ): Promise<
    [number, BigNumber, number, number] & {
      maxEdges: number;
      depth: BigNumber;
      currentRootIndex: number;
      numberOfLeaves: number;
    }
  >;

  nullifierHashes(
    arg0: BigNumberish,
    overrides?: CallOverrides
  ): Promise<boolean>;

  numSubtreeElements(overrides?: CallOverrides): Promise<number>;

  roots(
    arg0: BigNumberish,
    overrides?: CallOverrides
  ): Promise<
    [BigNumber, number] & { root: BigNumber; latestLeafindex: number }
  >;

  subtreeLevels(overrides?: CallOverrides): Promise<number>;

  subtrees(
    arg0: BigNumberish,
    overrides?: CallOverrides
  ): Promise<
    [number, BigNumber, number, number] & {
      maxEdges: number;
      depth: BigNumber;
      currentRootIndex: number;
      numberOfLeaves: number;
    }
  >;

  callStatic: {
    FIELD_SIZE(overrides?: CallOverrides): Promise<BigNumber>;

    ROOT_HISTORY_SIZE(overrides?: CallOverrides): Promise<number>;

    ZERO_VALUE(overrides?: CallOverrides): Promise<BigNumber>;

    commitments(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<boolean>;

    currSubtreeIndex(overrides?: CallOverrides): Promise<number>;

    filledSubtrees(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    forestLevels(overrides?: CallOverrides): Promise<number>;

    getHasher(overrides?: CallOverrides): Promise<string>;

    getLastRoot(overrides?: CallOverrides): Promise<BigNumber>;

    getLastSubtreeRoot(
      _subtreeId: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    getLevels(overrides?: CallOverrides): Promise<number>;

    getNextIndex(overrides?: CallOverrides): Promise<number>;

    getZeroHash(
      index: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    hashLeftRight(
      _left: BigNumberish,
      _right: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    hasher(overrides?: CallOverrides): Promise<string>;

    initialized(overrides?: CallOverrides): Promise<boolean>;

    insert(_leaf: BigNumberish, overrides?: CallOverrides): Promise<void>;

    insertSubtreeTest(
      _subtreeId: BigNumberish,
      _leaf: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    insertTest(_leaf: BigNumberish, overrides?: CallOverrides): Promise<void>;

    insertTwoTest(
      _leaf1: BigNumberish,
      _leaf2: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    isKnownRoot(
      _root: BigNumberish,
      overrides?: CallOverrides
    ): Promise<boolean>;

    isKnownSubtreeRoot(
      _subtreeId: BigNumberish,
      _root: BigNumberish,
      overrides?: CallOverrides
    ): Promise<boolean>;

    merkleForest(
      overrides?: CallOverrides
    ): Promise<
      [number, BigNumber, number, number] & {
        maxEdges: number;
        depth: BigNumber;
        currentRootIndex: number;
        numberOfLeaves: number;
      }
    >;

    nullifierHashes(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<boolean>;

    numSubtreeElements(overrides?: CallOverrides): Promise<number>;

    roots(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<
      [BigNumber, number] & { root: BigNumber; latestLeafindex: number }
    >;

    subtreeLevels(overrides?: CallOverrides): Promise<number>;

    subtrees(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<
      [number, BigNumber, number, number] & {
        maxEdges: number;
        depth: BigNumber;
        currentRootIndex: number;
        numberOfLeaves: number;
      }
    >;
  };

  filters: {
    "Insertion(uint256,uint32,uint256)"(
      commitment?: BigNumberish | null,
      leafIndex?: null,
      timestamp?: null
    ): TypedEventFilter<
      [BigNumber, number, BigNumber],
      { commitment: BigNumber; leafIndex: number; timestamp: BigNumber }
    >;

    Insertion(
      commitment?: BigNumberish | null,
      leafIndex?: null,
      timestamp?: null
    ): TypedEventFilter<
      [BigNumber, number, BigNumber],
      { commitment: BigNumber; leafIndex: number; timestamp: BigNumber }
    >;
  };

  estimateGas: {
    FIELD_SIZE(overrides?: CallOverrides): Promise<BigNumber>;

    ROOT_HISTORY_SIZE(overrides?: CallOverrides): Promise<BigNumber>;

    ZERO_VALUE(overrides?: CallOverrides): Promise<BigNumber>;

    commitments(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    currSubtreeIndex(overrides?: CallOverrides): Promise<BigNumber>;

    filledSubtrees(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    forestLevels(overrides?: CallOverrides): Promise<BigNumber>;

    getHasher(overrides?: CallOverrides): Promise<BigNumber>;

    getLastRoot(overrides?: CallOverrides): Promise<BigNumber>;

    getLastSubtreeRoot(
      _subtreeId: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    getLevels(overrides?: CallOverrides): Promise<BigNumber>;

    getNextIndex(overrides?: CallOverrides): Promise<BigNumber>;

    getZeroHash(
      index: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    hashLeftRight(
      _left: BigNumberish,
      _right: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    hasher(overrides?: CallOverrides): Promise<BigNumber>;

    initialized(overrides?: CallOverrides): Promise<BigNumber>;

    insert(
      _leaf: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    insertSubtreeTest(
      _subtreeId: BigNumberish,
      _leaf: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    insertTest(
      _leaf: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    insertTwoTest(
      _leaf1: BigNumberish,
      _leaf2: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    isKnownRoot(
      _root: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    isKnownSubtreeRoot(
      _subtreeId: BigNumberish,
      _root: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    merkleForest(overrides?: CallOverrides): Promise<BigNumber>;

    nullifierHashes(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    numSubtreeElements(overrides?: CallOverrides): Promise<BigNumber>;

    roots(arg0: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;

    subtreeLevels(overrides?: CallOverrides): Promise<BigNumber>;

    subtrees(arg0: BigNumberish, overrides?: CallOverrides): Promise<BigNumber>;
  };

  populateTransaction: {
    FIELD_SIZE(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    ROOT_HISTORY_SIZE(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    ZERO_VALUE(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    commitments(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    currSubtreeIndex(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    filledSubtrees(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    forestLevels(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    getHasher(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    getLastRoot(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    getLastSubtreeRoot(
      _subtreeId: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    getLevels(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    getNextIndex(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    getZeroHash(
      index: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    hashLeftRight(
      _left: BigNumberish,
      _right: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    hasher(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    initialized(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    insert(
      _leaf: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    insertSubtreeTest(
      _subtreeId: BigNumberish,
      _leaf: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    insertTest(
      _leaf: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    insertTwoTest(
      _leaf1: BigNumberish,
      _leaf2: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    isKnownRoot(
      _root: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    isKnownSubtreeRoot(
      _subtreeId: BigNumberish,
      _root: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    merkleForest(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    nullifierHashes(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    numSubtreeElements(
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    roots(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    subtreeLevels(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    subtrees(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;
  };
}
