/** * 0x Swap API V2 (Permit2) — Franklin built-in tools for Base trading. * * Same posture as the JupiterSwap tools, different chain + aggregator: * - Calls 0x's API directly from this Franklin process (the user is the * first-party caller; we are not a gateway proxy → no ToS violation). * - Embeds BlockRun's affiliate identity in every quote (`swapFeeRecipient` * + `swapFeeBps` + `swapFeeToken`). Fee flows on-chain to BlockRun at * swap settlement — 0x's officially-supported integrator monetization. * - User signs locally with their existing Base/EVM keypair (via @blockrun/ * llm's `getOrCreateWallet`); we never custody. * * Two tools exposed: * - Base0xQuote — indicative price, free, no signing * - Base0xSwap — full quote → sign Permit2 → submit raw tx → BaseScan link * * Reference (official 0x example): * https://github.com/0xProject/0x-examples/tree/main/swap-v2-permit2-headless-example * * Required env: * ZERO_EX_API_KEY — get one free at https://dashboard.0x.org * BASE_RPC_URL — optional override; defaults to public Base RPC */ import type { CapabilityHandler } from '../agent/types.js'; export declare const base0xQuoteCapability: CapabilityHandler; export declare const base0xSwapCapability: CapabilityHandler;