import { P as PaymentIntent } from '../types-BlBVH5_n.js'; /** Stripe 支付参数的子集(我们只关心这些字段) */ interface StripePaymentParams { amount: number; currency: string; metadata?: Record; description?: string; } interface StripeAdapterOptions { agentId: string; category?: string; /** 如不传,尝试从 metadata.merchant 或 description 提取 */ merchant?: string; } /** * 将 Stripe 支付参数转换为统一 PaymentIntent */ declare function fromStripe(params: StripePaymentParams, options: StripeAdapterOptions): PaymentIntent; export { type StripeAdapterOptions, type StripePaymentParams, fromStripe };