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

export interface LenderGroupMockInteractInterface extends Interface {
  getFunction(
    nameOrSignature:
      | "addPrincipalToCommitmentGroup"
      | "burnSharesToWithdrawEarnings"
      | "liquidateDefaultedLoanWithIncentive"
      | "prepareSharesForBurn"
  ): FunctionFragment;

  encodeFunctionData(
    functionFragment: "addPrincipalToCommitmentGroup",
    values: [
      AddressLike,
      AddressLike,
      AddressLike,
      BigNumberish,
      AddressLike,
      BigNumberish
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "burnSharesToWithdrawEarnings",
    values: [
      AddressLike,
      AddressLike,
      AddressLike,
      BigNumberish,
      AddressLike,
      BigNumberish
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "liquidateDefaultedLoanWithIncentive",
    values: [AddressLike, AddressLike, BigNumberish, BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "prepareSharesForBurn",
    values: [AddressLike, BigNumberish]
  ): string;

  decodeFunctionResult(
    functionFragment: "addPrincipalToCommitmentGroup",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "burnSharesToWithdrawEarnings",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "liquidateDefaultedLoanWithIncentive",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "prepareSharesForBurn",
    data: BytesLike
  ): Result;
}

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

  interface: LenderGroupMockInteractInterface;

  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>;

  addPrincipalToCommitmentGroup: TypedContractMethod<
    [
      _target: AddressLike,
      _principalToken: AddressLike,
      _sharesToken: AddressLike,
      _amount: BigNumberish,
      _sharesRecipient: AddressLike,
      _minSharesAmountOut: BigNumberish
    ],
    [void],
    "nonpayable"
  >;

  burnSharesToWithdrawEarnings: TypedContractMethod<
    [
      _target: AddressLike,
      _principalToken: AddressLike,
      _poolSharesToken: AddressLike,
      _amountPoolSharesTokens: BigNumberish,
      _recipient: AddressLike,
      _minAmountOut: BigNumberish
    ],
    [void],
    "nonpayable"
  >;

  liquidateDefaultedLoanWithIncentive: TypedContractMethod<
    [
      _target: AddressLike,
      _principalToken: AddressLike,
      _bidId: BigNumberish,
      _tokenAmountDifference: BigNumberish,
      loanAmount: BigNumberish
    ],
    [void],
    "nonpayable"
  >;

  prepareSharesForBurn: TypedContractMethod<
    [_target: AddressLike, _amountPoolSharesTokens: BigNumberish],
    [void],
    "nonpayable"
  >;

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

  getFunction(
    nameOrSignature: "addPrincipalToCommitmentGroup"
  ): TypedContractMethod<
    [
      _target: AddressLike,
      _principalToken: AddressLike,
      _sharesToken: AddressLike,
      _amount: BigNumberish,
      _sharesRecipient: AddressLike,
      _minSharesAmountOut: BigNumberish
    ],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "burnSharesToWithdrawEarnings"
  ): TypedContractMethod<
    [
      _target: AddressLike,
      _principalToken: AddressLike,
      _poolSharesToken: AddressLike,
      _amountPoolSharesTokens: BigNumberish,
      _recipient: AddressLike,
      _minAmountOut: BigNumberish
    ],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "liquidateDefaultedLoanWithIncentive"
  ): TypedContractMethod<
    [
      _target: AddressLike,
      _principalToken: AddressLike,
      _bidId: BigNumberish,
      _tokenAmountDifference: BigNumberish,
      loanAmount: BigNumberish
    ],
    [void],
    "nonpayable"
  >;
  getFunction(
    nameOrSignature: "prepareSharesForBurn"
  ): TypedContractMethod<
    [_target: AddressLike, _amountPoolSharesTokens: BigNumberish],
    [void],
    "nonpayable"
  >;

  filters: {};
}
