import { EthereumProvider, MMUsedAssets, NetworkNumber } from '../../types/common'; import { MorphoBlueAggregatedPositionData, MorphoBlueAssetsData, MorphoBlueMarketData, MorphoBlueMarketInfo } from '../../types'; export declare const getMorphoBlueAggregatedPositionData: ({ usedAssets, assetsData, marketInfo }: { usedAssets: MMUsedAssets; assetsData: MorphoBlueAssetsData; marketInfo: MorphoBlueMarketInfo; }) => MorphoBlueAggregatedPositionData; export declare const getSupplyRate: (totalSupplyAssets: string, totalBorrowAssets: string, borrowRate: string, fee: string) => string; export declare const getBorrowRate: (borrowRate: string, totalBorrowShares: string) => string; export declare const getApyAfterValuesEstimation: (selectedMarket: MorphoBlueMarketData, actions: { action: string; amount: string; asset: string; }[], provider: EthereumProvider, network: NetworkNumber) => Promise<{ borrowRate: string; supplyRate: string; }>; /** * Get reallocatable liquidity to a given market and target borrow utilization * @param marketId - Unique key of the market liquidity is reallocated to * @param network - The network number * @returns The reallocatable liquidity and target borrow utilization */ export declare const getReallocatableLiquidity: (marketId: string, network?: NetworkNumber) => Promise<{ reallocatableLiquidity: string; targetBorrowUtilization: string; }>; /** * Get liquidity to allocate for a given amount to borrow. * First, the function will try to calculate the amount of liquidity to allocate to be able to * hit the target utilization. If it is not possible to allocate enough liquidity to hit the * target utilization, the function will allocate the amount of liquidity needed to be able to * borrow the selected amount. * @param amountToBorrow - The amount to borrow * @param totalBorrow - The total amount borrowed from market * @param totalSupply - The total amount supplied to market * @param targetBorrowUtilization - The target borrow utilization of market * @param reallocatableLiquidityAssets - The amount of liquidity that can be reallocated from other markets * @returns The amount of liquidity to allocate */ export declare const getLiquidityToAllocate: (amountToBorrow: string, totalBorrow: string, totalSupply: string, targetBorrowUtilization: string, reallocatableLiquidityAssets: string) => string; /** * Get the vaults and withdrawals needed to reallocate liquidity for a given amount to borrow. * Amount to be reallocated is calculated in `getLiquidityToAllocate` * @param market - The market data * @param assetsData - The assets data * @param amountToBorrow - Amount being borrowed (not the amount being reallocated) * @param network - The network number * @returns The vaults and withdrawals needed to reallocate liquidity */ export declare const getReallocation: (market: MorphoBlueMarketData, assetsData: MorphoBlueAssetsData, amountToBorrow: string, network?: NetworkNumber) => Promise<{ vaults: string[]; withdrawals: (string | string[])[][][]; }>; export declare const getRewardsForMarket: (marketId: string, network?: NetworkNumber) => Promise<{ supplyApy: string; borrowApy: string; }>;