import { P as PaymentIntent } from '../types-BlBVH5_n.js'; /** x402 协议 402 响应中的支付要求 */ interface X402PaymentRequired { amount: number; currency: string; /** 收款钱包地址 */ receiver: string; /** 链名称(base / solana / polygon) */ chain?: string; /** 请求的资源 URL */ resource?: string; } interface X402AdapterOptions { agentId: string; category?: string; } /** * 将 x402 支付要求转换为统一 PaymentIntent */ declare function fromX402(params: X402PaymentRequired, options: X402AdapterOptions): PaymentIntent; export { type X402AdapterOptions, type X402PaymentRequired, fromX402 };