/** * 0x Gasless API V2 — Franklin built-in tool for Base swaps WITHOUT user gas. * * UX win over Base0xSwap (Permit2): the user signs only EIP-712 typed-data * (no on-chain approval, no on-chain swap submission). 0x's relayer * broadcasts the trade and pays gas; the user pays nothing in ETH and only * needs to hold the input token (USDC, DAI, or other Permit-supporting * ERC-20). * * For tokens that don't support Permit (USDT etc.) we error out and tell * the user to either use Base0xSwap (which can do a one-time approve+swap * with ETH gas) or swap from a Permit-supporting token instead. * * Routes through BlockRun gateway (/v1/zerox/gasless/{price,quote,submit,status}) * — server holds the 0x API key, no user setup needed. On-chain affiliate * (20 bps) is force-set at quote time on the gateway side. * * Reference: https://github.com/0xProject/0x-examples/tree/main/gasless-v2-headless-example */ import type { CapabilityHandler } from '../agent/types.js'; export declare const base0xGaslessSwapCapability: CapabilityHandler;