/** * 中心化支付 - 支付客户端 */ import type { ExtractedPaymentInfo } from "./parser.js"; export interface CentralizedPaymentConfig { paymentUrl?: string; clientId?: string; } export interface PaymentResponse { success: boolean; data?: unknown; error?: string; statusCode: number; responseBody?: string; } /** * 获取中心化支付 API 地址(优先使用环境变量) */ export declare function getPaymentUrl(config?: CentralizedPaymentConfig): string; /** * 获取 Client ID(优先使用环境变量) */ export declare function getClientId(config?: CentralizedPaymentConfig): string; /** * 调用中心化支付 API */ export declare function submitCentralizedPayment(paymentInfo: ExtractedPaymentInfo, accessToken: string, config?: CentralizedPaymentConfig): Promise; //# sourceMappingURL=payment-client.d.ts.map