import type { Emitter } from "@codesandbox/pitcher-common"; import type { port as portProtocol } from "@codesandbox/pitcher-protocol"; import type { SandpackClient } from "@codesandbox/sandpack-client"; import type { Sandpack } from "../../browser/clients/port/Sandpack"; export interface IPort extends portProtocol.Port { mountSandpack?: (iframe: HTMLIFrameElement) => Promise; onMountSandpack?: (cb: () => void) => void; getSandpackClient?: () => Sandpack["client"]; } export interface IPortClient { onPortsUpdated: Emitter["event"]; onPortsError: Emitter["event"]; readyPromise: Promise | undefined; getPorts(): IPort[]; resync(): void; } //# sourceMappingURL=IPortClient.d.ts.map