import { ethers } from "ethers"; import { Borrower, CreditDesk } from "../contract"; import { IBorrowerClient } from "./definitions"; export declare class BorrowerClient implements IBorrowerClient { readonly signer: ethers.Signer; readonly borrowerContract: Borrower; readonly creditDeskContract: CreditDesk; constructor(signer: ethers.Signer, contractAddress?: string, creditDeskContractAddress?: string); /** * getLoan borrows from the credit line * @param creditLineAddress Borrower's credit line address * @param amount Amount to borrow * @param assetTokenAddress Asset token address they will lock up as collateral * @returns **/ getLoan(creditLineAddress: string, amount: string, assetTokenAddress: string, overrides?: ethers.Overrides): Promise; /** * repayLoan repays the loan * @param creditLineAddress Borrower's credit line address * @param amount Amount to borrow **/ repayLoan(creditLineAddress: string, amount: string, overrides?: ethers.Overrides): Promise; /** * repayLoanInFull repays the loan in full * @param creditLineAddress Borrower's credit line address * @returns **/ repayLoanInFull(creditLineAddress: string, overrides?: ethers.Overrides): Promise; /** * getNextPaymentAmount gets the next payment amount * @param creditLineAddress Borrower's credit line address * @param asOfBlock Block number to get the next payment amount * @returns **/ getNextPaymentAmount(creditLineAddress: string, asOfBlock: ethers.BigNumberish): Promise; }