type WepinProviderCommand = 'request_enable' | 'sign_transaction' | 'send_transaction' | 'sign_typed_data' | 'sign' | 'wallet_switchEthereumChain' | 'provider_request' | 'dequeue_request'; type WepinCommand = 'ready_to_widget' | 'close_wepin_widget' | 'set_local_storage' | WepinProviderCommand; export interface WebviewRequestMessage { header: { request_from: 'wepin_widget'; request_to: 'web'; id: number; }; body: { command: WepinCommand; parameter: any; }; } export interface WebviewResponseMessage { header: { response_from: 'wepin_widget'; response_to: 'web'; id: number; }; body: { command: WepinCommand; state: 'ERROR' | 'SUCCESS'; data: any; }; } export interface WepinRequestMessage { header: { request_from: 'web'; request_to: 'wepin_widget'; id: number; }; body: { command: WepinCommand; parameter: any; }; } export interface WepinResponseMessage { header: { response_from: 'web'; response_to: 'wepin_widget'; id: number; }; body: { command: WepinCommand; state: 'ERROR' | 'SUCCESS'; data: any; }; } export {};