import BN from "bn.js"; import { PoolType } from "../types.js"; export interface TradeSimulationResult { grossCost: BN; fee: BN; netCost: BN; tokensAmount: BN; pricePerToken: number; priceImpact: number; } /** * Binary search for optimal token amount given SOL budget */ export declare function tokensForSolBudget(qVector: BN[], b: BN, poolType: PoolType, strikeIndex: number, isHit: boolean, solBudget: BN): { tokens: BN; simulation: TradeSimulationResult; }; /** * Calculate SOL cost for buying tokens */ export declare function solCostForTokens(qVector: BN[], b: BN, poolType: PoolType, strikeIndex: number, isHit: boolean, tokenAmount: BN): TradeSimulationResult; /** * Calculate SOL refund for selling tokens */ export declare function solRefundForTokens(qVector: BN[], b: BN, poolType: PoolType, strikeIndex: number, isHit: boolean, tokenAmount: BN): TradeSimulationResult; //# sourceMappingURL=simulation.d.ts.map