11cb0ef41Sopenharmony_cideclare namespace InternalMessagingBinding { 21cb0ef41Sopenharmony_ci class MessageChannel { 31cb0ef41Sopenharmony_ci port1: MessagePort; 41cb0ef41Sopenharmony_ci port2: MessagePort; 51cb0ef41Sopenharmony_ci } 61cb0ef41Sopenharmony_ci 71cb0ef41Sopenharmony_ci class MessagePort { 81cb0ef41Sopenharmony_ci private constructor(); 91cb0ef41Sopenharmony_ci postMessage(message: any, transfer?: any[] | null): void; 101cb0ef41Sopenharmony_ci start(): void; 111cb0ef41Sopenharmony_ci close(): void; 121cb0ef41Sopenharmony_ci ref(): void; 131cb0ef41Sopenharmony_ci unref(): void; 141cb0ef41Sopenharmony_ci } 151cb0ef41Sopenharmony_ci 161cb0ef41Sopenharmony_ci class JSTransferable {} 171cb0ef41Sopenharmony_ci} 181cb0ef41Sopenharmony_ci 191cb0ef41Sopenharmony_ci 201cb0ef41Sopenharmony_cideclare function InternalBinding(binding: 'messaging'): { 211cb0ef41Sopenharmony_ci DOMException: typeof import('internal/per_context/domexception').DOMException; 221cb0ef41Sopenharmony_ci MessageChannel: typeof InternalMessagingBinding.MessageChannel; 231cb0ef41Sopenharmony_ci MessagePort: typeof InternalMessagingBinding.MessagePort; 241cb0ef41Sopenharmony_ci JSTransferable: typeof InternalMessagingBinding.JSTransferable; 251cb0ef41Sopenharmony_ci stopMessagePort(port: typeof InternalMessagingBinding.MessagePort): void; 261cb0ef41Sopenharmony_ci checkMessagePort(port: unknown): boolean; 271cb0ef41Sopenharmony_ci drainMessagePort(port: typeof InternalMessagingBinding.MessagePort): void; 281cb0ef41Sopenharmony_ci receiveMessageOnPort(port: typeof InternalMessagingBinding.MessagePort): any; 291cb0ef41Sopenharmony_ci moveMessagePortToContext(port: typeof InternalMessagingBinding.MessagePort, context: any): typeof InternalMessagingBinding.MessagePort; 301cb0ef41Sopenharmony_ci setDeserializerCreateObjectFunction(func: (deserializeInfo: string) => any): void; 311cb0ef41Sopenharmony_ci broadcastChannel(name: string): typeof InternalMessagingBinding.MessagePort; 321cb0ef41Sopenharmony_ci}; 33