import { Bitcoin, MonetaryAmount } from "@interlay/monetary-js"; import Big from "big.js"; import { LoanAction, CurrencyExt, LoanAsset, LoanPosition, TickerToData } from "../types"; declare const calculateTotalBorrowedBtcChange: (action: LoanAction, currentTotalBorrowedBtc: MonetaryAmount, actionAmountBtc: MonetaryAmount) => MonetaryAmount; declare const calculateCollateralAmountBtcChange: (action: LoanAction, currentCollateralAmountBtc: MonetaryAmount, actionAmountBtc: MonetaryAmount) => MonetaryAmount; declare const adjustToThreshold: (amount: MonetaryAmount, threshold: Big) => MonetaryAmount; declare const calculateBorrowLimit: (totalBorrowedAmount: MonetaryAmount, totalCollateralThresholdAdjustedAmount: MonetaryAmount) => MonetaryAmount; declare const getTotalAmountBtc: (positions: Array, loanAssets: TickerToData) => MonetaryAmount; declare const calculateThreshold: (collateralAmount: MonetaryAmount, thresholdAdjustedCollateralAmount: MonetaryAmount) => Big; declare const calculateLtv: (collateralAmount: MonetaryAmount, borrowedAmount: MonetaryAmount) => Big; declare const calculateBorrowLimitBtcChangeFactory: (loanAssets: TickerToData, totalBorrowedBtc: MonetaryAmount, totalCollateralThresholdAdjustedCollateralBtc: MonetaryAmount) => (action: LoanAction, amount: MonetaryAmount) => MonetaryAmount; declare const calculateLtvAndThresholdsChangeFactory: (loanAssets: TickerToData, totalBorrowedBtc: MonetaryAmount, totalCollateralBtc: MonetaryAmount, totalCollateralThresholdAdjustedCollateralBtc: MonetaryAmount, totalLiquidationThresholdAdjustedCollateralBtc: MonetaryAmount) => (action: LoanAction, amount: MonetaryAmount) => { ltv: Big; collateralThresholdWeightedAverage: Big; liquidationThresholdWeightedAverage: Big; }; export { calculateBorrowLimit, adjustToThreshold, calculateCollateralAmountBtcChange as calculateCollateralAmountBtc, calculateTotalBorrowedBtcChange, getTotalAmountBtc, calculateLtv, calculateThreshold, calculateBorrowLimitBtcChangeFactory, calculateLtvAndThresholdsChangeFactory, };