import { type BigIntish } from "@morpho-org/blue-sdk"; export declare namespace MorphoAaveMath { const INDEX_ONE: bigint; const indexMul: (a: BigIntish, b: BigIntish) => bigint; const indexDiv: (a: BigIntish, b: BigIntish) => bigint; const indexDivUp: (a: BigIntish, b: BigIntish) => bigint; const PERCENT_ONE: bigint; const percentMul: (a: BigIntish, pct: BigIntish) => bigint; const percentToWad: (pct: bigint) => bigint; /** * Computes APYs from rates * * @param poolSupplyRate in RAY _(27 decimals)_ * @param poolBorrowRate in RAY _(27 decimals)_ * @param p2pIndexCursor in BASE_UNITS _(4 decimals)_ * @param supplyProportionDelta in RAY _(27 decimals)_ * @param borrowProportionDelta in RAY _(27 decimals)_ * @param proportionIdle in RAY _(27 decimals)_ * @param reserveFactor in BASE_UNITS _(4 decimals)_ * @returns the computed APYs in BASE_UNITS _(4 decimals)_ */ function computeApysFromRates(poolSupplyRate: bigint, poolBorrowRate: bigint, p2pIndexCursor: BigIntish, supplyProportionDelta?: bigint, borrowProportionDelta?: bigint, proportionIdle?: bigint, reserveFactor?: BigIntish): { poolBorrowAPY: bigint; poolSupplyAPY: bigint; p2pSupplyAPY: bigint; p2pBorrowAPY: bigint; p2pAPY: bigint; }; }