import { Hex } from 'ox'; import * as Provider from '../Provider.js'; /** Creates a Uniswap Trading API provider restricted to executable AMM routes. */ export declare function uniswap(options: uniswap.Options): Provider.Provider<"uniswap">; export declare namespace uniswap { /** Uniswap Trading API provider options. */ type Options = { /** Uniswap Trading API key. */ apiKey: string; }; } /** Validates a Uniswap approval response before its calls are returned to a wallet. */ export declare function validateApprovalResponse(response: unknown): { approval: { chainId: number; data: `0x${string}`; from: `0x${string}`; gasLimit?: string | undefined; to: `0x${string}`; value: string; } | null; cancel: { chainId: number; data: `0x${string}`; from: `0x${string}`; gasLimit?: string | undefined; to: `0x${string}`; value: string; } | null; }; /** Accepts exact-source minimums that preserve the requested slippage after integer rounding. */ export declare function validateExactSourceMinimum(options: validateExactSourceMinimum.Options): void; export declare namespace validateExactSourceMinimum { /** Upstream destination amounts and requested slippage to compare. */ type Options = { /** Quoted destination amount in base units. */ amount: string; /** Minimum destination amount in base units. */ minimumAmount?: string | undefined; /** Requested slippage in basis points. */ slippageBps: number; }; } /** Rejects exact-source quotes that expand the wallet authorization amount. */ export declare function validateExactSourceMaximum(options: validateExactSourceMaximum.Options): void; export declare namespace validateExactSourceMaximum { /** Requested and upstream source bounds to compare. */ type Options = { /** Exact source amount requested by the caller. */ amount: string; /** Optional maximum source amount returned upstream. */ maximumAmount?: string | undefined; }; } /** Rejects Universal Router calldata with capabilities outside token swaps and payments. */ export declare function validateRouterCalldata(data: Hex.Hex): void; //# sourceMappingURL=uniswap.d.ts.map