import { EVM } from '../../config/chain.js'; import { ContractEVM } from '../../config/evm/contract.evm.js'; import 'viem/chains'; import '@solana/web3.js'; import 'viem'; interface ReserveInterface { id: number; decimals: number; address: string; aTokenAddress: `0x${string}`; variableDebtTokenAddress: `0x${string}`; priceRaw: bigint; ltv: number; liquidationThreshold: number; liquidationBonus: number; reserveFactor: number; optimalUsageRatio: number; baseBorrowRate: number; slope1: number; slope2: number; totalSupplyRaw: bigint; totalBorrowRaw: bigint; availableLiquidityRaw: bigint; supplyRateRaw: bigint; borrowRateRaw: bigint; } interface MarketData { totalMarketSize: number; totalAvailable: number; totalBorrows: number; } interface UserDataInterface { totalCollateralBaseRaw: bigint; totalDebtBaseRaw: bigint; availableBorrowsBaseRaw: bigint; currentLiquidationThresholdRaw: bigint; ltvRaw: bigint; healthFactorRaw: bigint; configuration: bigint; } interface UserReserveStateInterface { isUsingAsCollateral: boolean; isBorrowing: boolean; } declare class Pool { contract: ContractEVM; constructor(__contract__: ContractEVM); getReservesList(chain: EVM): Promise; getMarketData(chain: EVM): Promise; getUserData(chain: EVM, user: `0x${string}`): Promise; getUserReserveState(userConfig: bigint, reserveId: number): UserReserveStateInterface; getMaxWithdrawRaw(userTotalDebtBaseRaw: bigint, userHealthFactorRaw: bigint, userSupplyBalanceRaw: bigint, poolAvailableLiquidityRaw: bigint, reserveLiquidationThreshold: number, assetPriceRaw: bigint, assetDecimals: number, userUsingAsCollateral: boolean): bigint; getMaxBorrowRaw(poolAvailableLiquidityRaw: bigint, userAvailableBorrowsBaseRaw: bigint, priceRaw: bigint, assetDecimals: number): bigint; simulateHFSupply(userTotalCollateralBaseRaw: bigint, userTotalDebtBaseRaw: bigint, userCurrentLiquidationThresholdRaw: bigint, userHealthFactorRaw: bigint, reserveLiquidationThreshold: number, userSupplyBalanceRaw: bigint, userSupplyAmountRaw: bigint, assetPriceRaw: bigint, userUsingAsCollateral: boolean, assetDecimals: number): bigint; simulateHFWithdraw(userTotalCollateralBaseRaw: bigint, userTotalDebtBaseRaw: bigint, userCurrentLiquidationThresholdRaw: bigint, userHealthFactorRaw: bigint, reserveLiquidationThreshold: number, userSupplyBalanceRaw: bigint, userWithdrawAmountRaw: bigint, assetPriceRaw: bigint, userUsingAsCollateral: boolean, assetDecimals: number): bigint; simulateHFBorrow(userTotalCollateralBaseRaw: bigint, userTotalDebtBaseRaw: bigint, userCurrentLiquidationThresholdRaw: bigint, userBorrowAmountRaw: bigint, assetPriceRaw: bigint, assetDecimals: number): bigint; simulateHFRepay(userTotalCollateralBaseRaw: bigint, userTotalDebtBaseRaw: bigint, userCurrentLiquidationThresholdRaw: bigint, userBorrowBalanceRaw: bigint, userRepayAmountRaw: bigint, assetPriceRaw: bigint, assetDecimals: number): bigint; simulateHFSetAsCollateral(userTotalCollateralBaseRaw: bigint, userTotalDebtBaseRaw: bigint, userCurrentLiquidationThresholdRaw: bigint, userHealthFactorRaw: bigint, reserveLiquidationThreshold: number, userSupplyBalanceRaw: bigint, assetPriceRaw: bigint, userUsingAsCollateralCurrent: boolean, assetDecimals: number): bigint; } export { Pool };