import { EditableNetworkedDOM, NetworkedDOM } from "@mml-io/networked-dom-document"; import { NetworkedDOMWebsocket } from "@mml-io/networked-dom-web"; import { FakeWebsocket } from "./FakeWebsocket"; /** * The NetworkedDOMWebRunnerClient class can be used to view and interact with a NetworkedDOM document instance that is * available directly in the browser (rather than exposed over the network). This is useful for usage modes where the * document does not need to be available to other clients, such as a single-user or an edit/preview mode. * * The class takes arguments for where the view of the document should be synchronized to in the DOM, and which window * instance to use to create any other elements (to allow for using iframes to isolate the document from the rest of * the page). */ export declare class NetworkedDOMWebRunnerClient { readonly element: HTMLElement; connectedState: { document: NetworkedDOM | EditableNetworkedDOM; domWebsocket: NetworkedDOMWebsocket; fakeWebsocket: FakeWebsocket; } | null; private enableEventHandling; constructor(enableEventHandling?: boolean, element?: HTMLElement); disconnect(): void; dispose(): void; connect(document: NetworkedDOM | EditableNetworkedDOM, timeCallback?: (time: number) => void): void; } //# sourceMappingURL=NetworkedDOMWebRunnerClient.d.ts.map