type WepinCommand = 'ready_to_widget' | 'set_token'; 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 {};