import { ethers } from "ethers"; import { Pool } from "../.."; /** Minimum USD value of a leftover token to bother swapping during a withdrawal. */ export declare const LOW_USD_VALUE_FOR_WITHDRAWAL = 1; /** Slippage (bps) applied to the swap of small-value leftover tokens during withdrawal. */ export declare const SLIPPAGE_FOR_LOW_VALUE_SWAP = 500; /** * Resolve which asset should be used to deposit into a Toros pool. Returns the * caller's `investAsset` if the pool already accepts it, otherwise the pool's * primary deposit asset. */ export declare function getPoolDepositAsset(pool: Pool, poolAddress: string, investAsset: string): Promise; /** Read the current per-token price of a Toros vault from its PoolLogic. */ export declare function getTorosPoolTokenPrice(pool: Pool, poolAddress: string): Promise; /** Quote how many Toros vault tokens a deposit of `investAsset` would mint. */ export declare function getEasySwapperDepositQuote(pool: Pool, torosAsset: string, investAsset: string, amountIn: ethers.BigNumber): Promise; /** * Build the EasySwapper calldata for a Toros deposit or the start of a withdrawal. * If `assetFrom` is a Toros pool, this is treated as a withdrawal and routes through * `getInitWithdrawalTxData`. Otherwise it builds a `depositWithCustomCooldown` call. */ export declare function getEasySwapperTxData(pool: Pool, assetFrom: string, assetTo: string, amountIn: ethers.BigNumber, slippage: number): Promise<{ swapTxData: string; minAmountOut?: any; }>;