/** * Payment Handler * Handles payment events from miniapp */ import type { PaymentRequest, SDKConfig, LifecycleEventHandler } from '../types'; export interface PaymentHandlerConfig { config?: SDKConfig; lifecycleHandlers: Map; log: (message: string, data?: any) => void; sendResponseToMiniapp: (response: any) => void; sendErrorResponse: (eventType: string, error: any, requestId?: string | number) => void; } /** * Handle payment events * * Desktop SDK flow: * 1. Miniapp calls appboxo.pay() * 2. Receive payment event from miniapp * 3. Call Desktop App's onPaymentRequest callback * 4. Desktop App processes payment and returns result * 5. Return payment result to miniapp */ export declare function handlePaymentEvent(params: PaymentRequest, requestId: string | number | undefined, config: PaymentHandlerConfig): Promise; //# sourceMappingURL=paymentHandler.d.ts.map