import type { z } from "zod"; import type { Observable } from "rxjs"; import type { IframeMessagePortMap, MessagePortIframeEvent, MessagePortWorkAdventureEvent } from "../Events/MessagePortEvents"; type MessagePortMessageEvent = MessageEvent["data"]>>; /** * A wrapper around a MessagePort that ensures the messages sent and received conform to a specific type. * This class is used on the iframe side to communicate with the main application. */ export declare class CheckedIframeMessagePort { private type; private readonly port; private readonly _messages; readonly messages: Observable>; constructor(port: MessagePort, type: K); postMessage(message: MessagePortIframeEvent["data"]): void; close(): void; } export {};