import type { GetSwapQuoteArgs, PrepareSwapArgs } from "./schemas.js"; import type { SupportedChain, UnsignedTx } from "../../types/index.js"; /** * Reject slippage configurations that are almost certainly user/agent error. * The schema already caps at 500 bps (5%); this adds a soft-cap at 100 bps * (1%) that requires an explicit ack. MEV sandwich bots target open-slippage * txs, so every unnecessary basis point is paid straight to a searcher. */ export declare function assertSlippageOk(slippageBps: number | undefined, ack: boolean | undefined): void; export declare function getSwapQuote(args: GetSwapQuoteArgs): Promise<{ warning?: string | undefined; savingsVsLifi?: { source: "1inch"; outputDeltaPct: number; outputDeltaUsd?: number; } | undefined; bestSource?: "1inch" | "lifi" | "tie" | undefined; alternatives?: ({ source: "1inch"; toAmountExpected: string; toAmountUsd?: number; gasEstimate?: number; } | { source: "1inch"; error: string; })[] | undefined; fromChain: string; toChain: string; fromToken: import("@lifi/types").Token; toToken: import("@lifi/types").Token; fromAmount: string; toAmountMin: string; toAmountExpected: string; fromAmountUsd: number | undefined; toAmountUsd: number | undefined; tool: string; executionDurationSeconds: number; feeCostsUsd: number | undefined; gasCostsUsd: number | undefined; crossChain: boolean; }>; export declare function prepareSwap(args: PrepareSwapArgs): Promise; export declare function getSwapStatus(args: { txHash: string; fromChain: SupportedChain; toChain: SupportedChain; }): Promise;