/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
  BaseContract,
  BigNumberish,
  BytesLike,
  FunctionFragment,
  Result,
  Interface,
  EventFragment,
  AddressLike,
  ContractRunner,
  ContractMethod,
  Listener,
} from "ethers";
import type {
  TypedContractEvent,
  TypedDeferredTopicFilter,
  TypedEventLog,
  TypedLogDescription,
  TypedListener,
  TypedContractMethod,
} from "../../common";

export declare namespace ILenderCommitmentForwarder {
  export type CommitmentStruct = {
    maxPrincipal: BigNumberish;
    expiration: BigNumberish;
    maxDuration: BigNumberish;
    minInterestRate: BigNumberish;
    collateralTokenAddress: AddressLike;
    collateralTokenId: BigNumberish;
    maxPrincipalPerCollateralAmount: BigNumberish;
    collateralTokenType: BigNumberish;
    lender: AddressLike;
    marketId: BigNumberish;
    principalTokenAddress: AddressLike;
  };

  export type CommitmentStructOutput = [
    maxPrincipal: bigint,
    expiration: bigint,
    maxDuration: bigint,
    minInterestRate: bigint,
    collateralTokenAddress: string,
    collateralTokenId: bigint,
    maxPrincipalPerCollateralAmount: bigint,
    collateralTokenType: bigint,
    lender: string,
    marketId: bigint,
    principalTokenAddress: string
  ] & {
    maxPrincipal: bigint;
    expiration: bigint;
    maxDuration: bigint;
    minInterestRate: bigint;
    collateralTokenAddress: string;
    collateralTokenId: bigint;
    maxPrincipalPerCollateralAmount: bigint;
    collateralTokenType: bigint;
    lender: string;
    marketId: bigint;
    principalTokenAddress: string;
  };
}

export interface LenderCommitmentForwarderStagingInterface extends Interface {
  getFunction(
    nameOrSignature:
      | "_marketRegistry"
      | "_tellerV2"
      | "acceptCommitment"
      | "acceptCommitmentWithProof"
      | "acceptCommitmentWithRecipient"
      | "acceptCommitmentWithRecipientAndProof"
      | "addCommitmentBorrowers"
      | "addExtension"
      | "commitmentPrincipalAccepted"
      | "commitments"
      | "createCommitment"
      | "deleteCommitment"
      | "getCommitmentAcceptedPrincipal"
      | "getCommitmentBorrowers"
      | "getCommitmentLender"
      | "getCommitmentMarketId"
      | "getCommitmentMaxPrincipal"
      | "getMarketRegistry"
      | "getRequiredCollateral"
      | "getTellerV2"
      | "getTellerV2MarketOwner"
      | "hasExtension"
      | "removeCommitmentBorrowers"
      | "revokeExtension"
      | "updateCommitment"
  ): FunctionFragment;

  getEvent(
    nameOrSignatureOrTopic:
      | "CreatedCommitment"
      | "DeletedCommitment"
      | "ExercisedCommitment"
      | "ExtensionAdded"
      | "ExtensionRevoked"
      | "Initialized"
      | "UpdatedCommitment"
      | "UpdatedCommitmentBorrowers"
  ): EventFragment;

  encodeFunctionData(
    functionFragment: "_marketRegistry",
    values?: undefined
  ): string;
  encodeFunctionData(functionFragment: "_tellerV2", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "acceptCommitment",
    values: [
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      AddressLike,
      BigNumberish,
      BigNumberish
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "acceptCommitmentWithProof",
    values: [
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      AddressLike,
      BigNumberish,
      BigNumberish,
      BytesLike[]
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "acceptCommitmentWithRecipient",
    values: [
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      AddressLike,
      AddressLike,
      BigNumberish,
      BigNumberish
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "acceptCommitmentWithRecipientAndProof",
    values: [
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      AddressLike,
      AddressLike,
      BigNumberish,
      BigNumberish,
      BytesLike[]
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "addCommitmentBorrowers",
    values: [BigNumberish, AddressLike[]]
  ): string;
  encodeFunctionData(
    functionFragment: "addExtension",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "commitmentPrincipalAccepted",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "commitments",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "createCommitment",
    values: [ILenderCommitmentForwarder.CommitmentStruct, AddressLike[]]
  ): string;
  encodeFunctionData(
    functionFragment: "deleteCommitment",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "getCommitmentAcceptedPrincipal",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "getCommitmentBorrowers",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "getCommitmentLender",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "getCommitmentMarketId",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "getCommitmentMaxPrincipal",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "getMarketRegistry",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "getRequiredCollateral",
    values: [BigNumberish, BigNumberish, BigNumberish, AddressLike, AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "getTellerV2",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "getTellerV2MarketOwner",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "hasExtension",
    values: [AddressLike, AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "removeCommitmentBorrowers",
    values: [BigNumberish, AddressLike[]]
  ): string;
  encodeFunctionData(
    functionFragment: "revokeExtension",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "updateCommitment",
    values: [BigNumberish, ILenderCommitmentForwarder.CommitmentStruct]
  ): string;

  decodeFunctionResult(
    functionFragment: "_marketRegistry",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "_tellerV2", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "acceptCommitment",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "acceptCommitmentWithProof",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "acceptCommitmentWithRecipient",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "acceptCommitmentWithRecipientAndProof",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "addCommitmentBorrowers",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "addExtension",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "commitmentPrincipalAccepted",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "commitments",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "createCommitment",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "deleteCommitment",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getCommitmentAcceptedPrincipal",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getCommitmentBorrowers",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getCommitmentLender",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getCommitmentMarketId",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getCommitmentMaxPrincipal",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getMarketRegistry",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getRequiredCollateral",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getTellerV2",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getTellerV2MarketOwner",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "hasExtension",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "removeCommitmentBorrowers",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "revokeExtension",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "updateCommitment",
    data: BytesLike
  ): Result;
}

export namespace CreatedCommitmentEvent {
  export type InputTuple = [
    commitmentId: BigNumberish,
    lender: AddressLike,
    marketId: BigNumberish,
    lendingToken: AddressLike,
    tokenAmount: BigNumberish
  ];
  export type OutputTuple = [
    commitmentId: bigint,
    lender: string,
    marketId: bigint,
    lendingToken: string,
    tokenAmount: bigint
  ];
  export interface OutputObject {
    commitmentId: bigint;
    lender: string;
    marketId: bigint;
    lendingToken: string;
    tokenAmount: bigint;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export namespace DeletedCommitmentEvent {
  export type InputTuple = [commitmentId: BigNumberish];
  export type OutputTuple = [commitmentId: bigint];
  export interface OutputObject {
    commitmentId: bigint;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export namespace ExercisedCommitmentEvent {
  export type InputTuple = [
    commitmentId: BigNumberish,
    borrower: AddressLike,
    tokenAmount: BigNumberish,
    bidId: BigNumberish
  ];
  export type OutputTuple = [
    commitmentId: bigint,
    borrower: string,
    tokenAmount: bigint,
    bidId: bigint
  ];
  export interface OutputObject {
    commitmentId: bigint;
    borrower: string;
    tokenAmount: bigint;
    bidId: bigint;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export namespace ExtensionAddedEvent {
  export type InputTuple = [extension: AddressLike, sender: AddressLike];
  export type OutputTuple = [extension: string, sender: string];
  export interface OutputObject {
    extension: string;
    sender: string;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export namespace ExtensionRevokedEvent {
  export type InputTuple = [extension: AddressLike, sender: AddressLike];
  export type OutputTuple = [extension: string, sender: string];
  export interface OutputObject {
    extension: string;
    sender: string;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export namespace InitializedEvent {
  export type InputTuple = [version: BigNumberish];
  export type OutputTuple = [version: bigint];
  export interface OutputObject {
    version: bigint;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export namespace UpdatedCommitmentEvent {
  export type InputTuple = [
    commitmentId: BigNumberish,
    lender: AddressLike,
    marketId: BigNumberish,
    lendingToken: AddressLike,
    tokenAmount: BigNumberish
  ];
  export type OutputTuple = [
    commitmentId: bigint,
    lender: string,
    marketId: bigint,
    lendingToken: string,
    tokenAmount: bigint
  ];
  export interface OutputObject {
    commitmentId: bigint;
    lender: string;
    marketId: bigint;
    lendingToken: string;
    tokenAmount: bigint;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export namespace UpdatedCommitmentBorrowersEvent {
  export type InputTuple = [commitmentId: BigNumberish];
  export type OutputTuple = [commitmentId: bigint];
  export interface OutputObject {
    commitmentId: bigint;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export interface LenderCommitmentForwarderStaging extends BaseContract {
  connect(runner?: ContractRunner | null): LenderCommitmentForwarderStaging;
  waitForDeployment(): Promise<this>;

  interface: LenderCommitmentForwarderStagingInterface;

  queryFilter<TCEvent extends TypedContractEvent>(
    event: TCEvent,
    fromBlockOrBlockhash?: string | number | undefined,
    toBlock?: string | number | undefined
  ): Promise<Array<TypedEventLog<TCEvent>>>;
  queryFilter<TCEvent extends TypedContractEvent>(
    filter: TypedDeferredTopicFilter<TCEvent>,
    fromBlockOrBlockhash?: string | number | undefined,
    toBlock?: string | number | undefined
  ): Promise<Array<TypedEventLog<TCEvent>>>;

  on<TCEvent extends TypedContractEvent>(
    event: TCEvent,
    listener: TypedListener<TCEvent>
  ): Promise<this>;
  on<TCEvent extends TypedContractEvent>(
    filter: TypedDeferredTopicFilter<TCEvent>,
    listener: TypedListener<TCEvent>
  ): Promise<this>;

  once<TCEvent extends TypedContractEvent>(
    event: TCEvent,
    listener: TypedListener<TCEvent>
  ): Promise<this>;
  once<TCEvent extends TypedContractEvent>(
    filter: TypedDeferredTopicFilter<TCEvent>,
    listener: TypedListener<TCEvent>
  ): Promise<this>;

  listeners<TCEvent extends TypedContractEvent>(
    event: TCEvent
  ): Promise<Array<TypedListener<TCEvent>>>;
  listeners(eventName?: string): Promise<Array<Listener>>;
  removeAllListeners<TCEvent extends TypedContractEvent>(
    event?: TCEvent
  ): Promise<this>;

  _marketRegistry: TypedContractMethod<[], [string], "view">;

  _tellerV2: TypedContractMethod<[], [string], "view">;

  acceptCommitment: TypedContractMethod<
    [
      _commitmentId: BigNumberish,
      _principalAmount: BigNumberish,
      _collateralAmount: BigNumberish,
      _collateralTokenId: BigNumberish,
      _collateralTokenAddress: AddressLike,
      _interestRate: BigNumberish,
      _loanDuration: BigNumberish
    ],
    [bigint],
    "nonpayable"
  >;

  acceptCommitmentWithProof: TypedContractMethod<
    [
      _commitmentId: BigNumberish,
      _principalAmount: BigNumberish,
      _collateralAmount: BigNumberish,
      _collateralTokenId: BigNumberish,
      _collateralTokenAddress: AddressLike,
      _interestRate: BigNumberish,
      _loanDuration: BigNumberish,
      _merkleProof: BytesLike[]
    ],
    [bigint],
    "nonpayable"
  >;

  acceptCommitmentWithRecipient: TypedContractMethod<
    [
      _commitmentId: BigNumberish,
      _principalAmount: BigNumberish,
      _collateralAmount: BigNumberish,
      _collateralTokenId: BigNumberish,
      _collateralTokenAddress: AddressLike,
      _recipient: AddressLike,
      _interestRate: BigNumberish,
      _loanDuration: BigNumberish
    ],
    [bigint],
    "nonpayable"
  >;

  acceptCommitmentWithRecipientAndProof: TypedContractMethod<
    [
      _commitmentId: BigNumberish,
      _principalAmount: BigNumberish,
      _collateralAmount: BigNumberish,
      _collateralTokenId: BigNumberish,
      _collateralTokenAddress: AddressLike,
      _recipient: AddressLike,
      _interestRate: BigNumberish,
      _loanDuration: BigNumberish,
      _merkleProof: BytesLike[]
    ],
    [bigint],
    "nonpayable"
  >;

  addCommitmentBorrowers: TypedContractMethod<
    [_commitmentId: BigNumberish, _borrowerAddressList: AddressLike[]],
    [void],
    "nonpayable"
  >;

  addExtension: TypedContractMethod<
    [extension: AddressLike],
    [void],
    "nonpayable"
  >;

  commitmentPrincipalAccepted: TypedContractMethod<
    [arg0: BigNumberish],
    [bigint],
    "view"
  >;

  commitments: TypedContractMethod<
    [arg0: BigNumberish],
    [
      [
        bigint,
        bigint,
        bigint,
        bigint,
        string,
        bigint,
        bigint,
        bigint,
        string,
        bigint,
        string
      ] & {
        maxPrincipal: bigint;
        expiration: bigint;
        maxDuration: bigint;
        minInterestRate: bigint;
        collateralTokenAddress: string;
        collateralTokenId: bigint;
        maxPrincipalPerCollateralAmount: bigint;
        collateralTokenType: bigint;
        lender: string;
        marketId: bigint;
        principalTokenAddress: string;
      }
    ],
    "view"
  >;

  createCommitment: TypedContractMethod<
    [
      _commitment: ILenderCommitmentForwarder.CommitmentStruct,
      _borrowerAddressList: AddressLike[]
    ],
    [bigint],
    "nonpayable"
  >;

  deleteCommitment: TypedContractMethod<
    [_commitmentId: BigNumberish],
    [void],
    "nonpayable"
  >;

  getCommitmentAcceptedPrincipal: TypedContractMethod<
    [_commitmentId: BigNumberish],
    [bigint],
    "view"
  >;

  getCommitmentBorrowers: TypedContractMethod<
    [_commitmentId: BigNumberish],
    [string[]],
    "view"
  >;

  getCommitmentLender: TypedContractMethod<
    [_commitmentId: BigNumberish],
    [string],
    "view"
  >;

  getCommitmentMarketId: TypedContractMethod<
    [_commitmentId: BigNumberish],
    [bigint],
    "view"
  >;

  getCommitmentMaxPrincipal: TypedContractMethod<
    [_commitmentId: BigNumberish],
    [bigint],
    "view"
  >;

  getMarketRegistry: TypedContractMethod<[], [string], "view">;

  getRequiredCollateral: TypedContractMethod<
    [
      _principalAmount: BigNumberish,
      _maxPrincipalPerCollateralAmount: BigNumberish,
      _collateralTokenType: BigNumberish,
      _collateralTokenAddress: AddressLike,
      _principalTokenAddress: AddressLike
    ],
    [bigint],
    "view"
  >;

  getTellerV2: TypedContractMethod<[], [string], "view">;

  getTellerV2MarketOwner: TypedContractMethod<
    [marketId: BigNumberish],
    [string],
    "nonpayable"
  >;

  hasExtension: TypedContractMethod<
    [account: AddressLike, extension: AddressLike],
    [boolean],
    "view"
  >;

  removeCommitmentBorrowers: TypedContractMethod<
    [_commitmentId: BigNumberish, _borrowerAddressList: AddressLike[]],
    [void],
    "nonpayable"
  >;

  revokeExtension: TypedContractMethod<
    [extension: AddressLike],
    [void],
    "nonpayable"
  >;

  updateCommitment: TypedContractMethod<
    [
      _commitmentId: BigNumberish,
      _commitment: ILenderCommitmentForwarder.CommitmentStruct
    ],
    [void],
    "nonpayable"
  >;

  getFunction<T extends ContractMethod = ContractMethod>(
    key: string | FunctionFragment
  ): T;

  getFunction(
    nameOrSignature: "_marketRegistry"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "_tellerV2"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "acceptCommitment"
  ): TypedContractMethod<
    [
      _commitmentId: BigNumberish,
      _principalAmount: BigNumberish,
      _collateralAmount: BigNumberish,
      _collateralTokenId: BigNumberish,
      _collateralTokenAddress: AddressLike,
      _interestRate: BigNumberish,
      _loanDuration: BigNumberish
    ],
    [bigint],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "acceptCommitmentWithProof"
  ): TypedContractMethod<
    [
      _commitmentId: BigNumberish,
      _principalAmount: BigNumberish,
      _collateralAmount: BigNumberish,
      _collateralTokenId: BigNumberish,
      _collateralTokenAddress: AddressLike,
      _interestRate: BigNumberish,
      _loanDuration: BigNumberish,
      _merkleProof: BytesLike[]
    ],
    [bigint],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "acceptCommitmentWithRecipient"
  ): TypedContractMethod<
    [
      _commitmentId: BigNumberish,
      _principalAmount: BigNumberish,
      _collateralAmount: BigNumberish,
      _collateralTokenId: BigNumberish,
      _collateralTokenAddress: AddressLike,
      _recipient: AddressLike,
      _interestRate: BigNumberish,
      _loanDuration: BigNumberish
    ],
    [bigint],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "acceptCommitmentWithRecipientAndProof"
  ): TypedContractMethod<
    [
      _commitmentId: BigNumberish,
      _principalAmount: BigNumberish,
      _collateralAmount: BigNumberish,
      _collateralTokenId: BigNumberish,
      _collateralTokenAddress: AddressLike,
      _recipient: AddressLike,
      _interestRate: BigNumberish,
      _loanDuration: BigNumberish,
      _merkleProof: BytesLike[]
    ],
    [bigint],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "addCommitmentBorrowers"
  ): TypedContractMethod<
    [_commitmentId: BigNumberish, _borrowerAddressList: AddressLike[]],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "addExtension"
  ): TypedContractMethod<[extension: AddressLike], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "commitmentPrincipalAccepted"
  ): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
  getFunction(
    nameOrSignature: "commitments"
  ): TypedContractMethod<
    [arg0: BigNumberish],
    [
      [
        bigint,
        bigint,
        bigint,
        bigint,
        string,
        bigint,
        bigint,
        bigint,
        string,
        bigint,
        string
      ] & {
        maxPrincipal: bigint;
        expiration: bigint;
        maxDuration: bigint;
        minInterestRate: bigint;
        collateralTokenAddress: string;
        collateralTokenId: bigint;
        maxPrincipalPerCollateralAmount: bigint;
        collateralTokenType: bigint;
        lender: string;
        marketId: bigint;
        principalTokenAddress: string;
      }
    ],
    "view"
  >;
  getFunction(
    nameOrSignature: "createCommitment"
  ): TypedContractMethod<
    [
      _commitment: ILenderCommitmentForwarder.CommitmentStruct,
      _borrowerAddressList: AddressLike[]
    ],
    [bigint],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "deleteCommitment"
  ): TypedContractMethod<[_commitmentId: BigNumberish], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "getCommitmentAcceptedPrincipal"
  ): TypedContractMethod<[_commitmentId: BigNumberish], [bigint], "view">;
  getFunction(
    nameOrSignature: "getCommitmentBorrowers"
  ): TypedContractMethod<[_commitmentId: BigNumberish], [string[]], "view">;
  getFunction(
    nameOrSignature: "getCommitmentLender"
  ): TypedContractMethod<[_commitmentId: BigNumberish], [string], "view">;
  getFunction(
    nameOrSignature: "getCommitmentMarketId"
  ): TypedContractMethod<[_commitmentId: BigNumberish], [bigint], "view">;
  getFunction(
    nameOrSignature: "getCommitmentMaxPrincipal"
  ): TypedContractMethod<[_commitmentId: BigNumberish], [bigint], "view">;
  getFunction(
    nameOrSignature: "getMarketRegistry"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "getRequiredCollateral"
  ): TypedContractMethod<
    [
      _principalAmount: BigNumberish,
      _maxPrincipalPerCollateralAmount: BigNumberish,
      _collateralTokenType: BigNumberish,
      _collateralTokenAddress: AddressLike,
      _principalTokenAddress: AddressLike
    ],
    [bigint],
    "view"
  >;
  getFunction(
    nameOrSignature: "getTellerV2"
  ): TypedContractMethod<[], [string], "view">;
  getFunction(
    nameOrSignature: "getTellerV2MarketOwner"
  ): TypedContractMethod<[marketId: BigNumberish], [string], "nonpayable">;
  getFunction(
    nameOrSignature: "hasExtension"
  ): TypedContractMethod<
    [account: AddressLike, extension: AddressLike],
    [boolean],
    "view"
  >;
  getFunction(
    nameOrSignature: "removeCommitmentBorrowers"
  ): TypedContractMethod<
    [_commitmentId: BigNumberish, _borrowerAddressList: AddressLike[]],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "revokeExtension"
  ): TypedContractMethod<[extension: AddressLike], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "updateCommitment"
  ): TypedContractMethod<
    [
      _commitmentId: BigNumberish,
      _commitment: ILenderCommitmentForwarder.CommitmentStruct
    ],
    [void],
    "nonpayable"
  >;

  getEvent(
    key: "CreatedCommitment"
  ): TypedContractEvent<
    CreatedCommitmentEvent.InputTuple,
    CreatedCommitmentEvent.OutputTuple,
    CreatedCommitmentEvent.OutputObject
  >;
  getEvent(
    key: "DeletedCommitment"
  ): TypedContractEvent<
    DeletedCommitmentEvent.InputTuple,
    DeletedCommitmentEvent.OutputTuple,
    DeletedCommitmentEvent.OutputObject
  >;
  getEvent(
    key: "ExercisedCommitment"
  ): TypedContractEvent<
    ExercisedCommitmentEvent.InputTuple,
    ExercisedCommitmentEvent.OutputTuple,
    ExercisedCommitmentEvent.OutputObject
  >;
  getEvent(
    key: "ExtensionAdded"
  ): TypedContractEvent<
    ExtensionAddedEvent.InputTuple,
    ExtensionAddedEvent.OutputTuple,
    ExtensionAddedEvent.OutputObject
  >;
  getEvent(
    key: "ExtensionRevoked"
  ): TypedContractEvent<
    ExtensionRevokedEvent.InputTuple,
    ExtensionRevokedEvent.OutputTuple,
    ExtensionRevokedEvent.OutputObject
  >;
  getEvent(
    key: "Initialized"
  ): TypedContractEvent<
    InitializedEvent.InputTuple,
    InitializedEvent.OutputTuple,
    InitializedEvent.OutputObject
  >;
  getEvent(
    key: "UpdatedCommitment"
  ): TypedContractEvent<
    UpdatedCommitmentEvent.InputTuple,
    UpdatedCommitmentEvent.OutputTuple,
    UpdatedCommitmentEvent.OutputObject
  >;
  getEvent(
    key: "UpdatedCommitmentBorrowers"
  ): TypedContractEvent<
    UpdatedCommitmentBorrowersEvent.InputTuple,
    UpdatedCommitmentBorrowersEvent.OutputTuple,
    UpdatedCommitmentBorrowersEvent.OutputObject
  >;

  filters: {
    "CreatedCommitment(uint256,address,uint256,address,uint256)": TypedContractEvent<
      CreatedCommitmentEvent.InputTuple,
      CreatedCommitmentEvent.OutputTuple,
      CreatedCommitmentEvent.OutputObject
    >;
    CreatedCommitment: TypedContractEvent<
      CreatedCommitmentEvent.InputTuple,
      CreatedCommitmentEvent.OutputTuple,
      CreatedCommitmentEvent.OutputObject
    >;

    "DeletedCommitment(uint256)": TypedContractEvent<
      DeletedCommitmentEvent.InputTuple,
      DeletedCommitmentEvent.OutputTuple,
      DeletedCommitmentEvent.OutputObject
    >;
    DeletedCommitment: TypedContractEvent<
      DeletedCommitmentEvent.InputTuple,
      DeletedCommitmentEvent.OutputTuple,
      DeletedCommitmentEvent.OutputObject
    >;

    "ExercisedCommitment(uint256,address,uint256,uint256)": TypedContractEvent<
      ExercisedCommitmentEvent.InputTuple,
      ExercisedCommitmentEvent.OutputTuple,
      ExercisedCommitmentEvent.OutputObject
    >;
    ExercisedCommitment: TypedContractEvent<
      ExercisedCommitmentEvent.InputTuple,
      ExercisedCommitmentEvent.OutputTuple,
      ExercisedCommitmentEvent.OutputObject
    >;

    "ExtensionAdded(address,address)": TypedContractEvent<
      ExtensionAddedEvent.InputTuple,
      ExtensionAddedEvent.OutputTuple,
      ExtensionAddedEvent.OutputObject
    >;
    ExtensionAdded: TypedContractEvent<
      ExtensionAddedEvent.InputTuple,
      ExtensionAddedEvent.OutputTuple,
      ExtensionAddedEvent.OutputObject
    >;

    "ExtensionRevoked(address,address)": TypedContractEvent<
      ExtensionRevokedEvent.InputTuple,
      ExtensionRevokedEvent.OutputTuple,
      ExtensionRevokedEvent.OutputObject
    >;
    ExtensionRevoked: TypedContractEvent<
      ExtensionRevokedEvent.InputTuple,
      ExtensionRevokedEvent.OutputTuple,
      ExtensionRevokedEvent.OutputObject
    >;

    "Initialized(uint8)": TypedContractEvent<
      InitializedEvent.InputTuple,
      InitializedEvent.OutputTuple,
      InitializedEvent.OutputObject
    >;
    Initialized: TypedContractEvent<
      InitializedEvent.InputTuple,
      InitializedEvent.OutputTuple,
      InitializedEvent.OutputObject
    >;

    "UpdatedCommitment(uint256,address,uint256,address,uint256)": TypedContractEvent<
      UpdatedCommitmentEvent.InputTuple,
      UpdatedCommitmentEvent.OutputTuple,
      UpdatedCommitmentEvent.OutputObject
    >;
    UpdatedCommitment: TypedContractEvent<
      UpdatedCommitmentEvent.InputTuple,
      UpdatedCommitmentEvent.OutputTuple,
      UpdatedCommitmentEvent.OutputObject
    >;

    "UpdatedCommitmentBorrowers(uint256)": TypedContractEvent<
      UpdatedCommitmentBorrowersEvent.InputTuple,
      UpdatedCommitmentBorrowersEvent.OutputTuple,
      UpdatedCommitmentBorrowersEvent.OutputObject
    >;
    UpdatedCommitmentBorrowers: TypedContractEvent<
      UpdatedCommitmentBorrowersEvent.InputTuple,
      UpdatedCommitmentBorrowersEvent.OutputTuple,
      UpdatedCommitmentBorrowersEvent.OutputObject
    >;
  };
}
