import { IDocumentFactory, INodeLike, NetworkedDOMWebsocketStatus } from "@mml-io/networked-dom-web"; import { DocumentSource, RemoteDocumentWrapper } from "../remote-document"; import { IMMLScene } from "../scene"; export type MMLNetworkSourceOptions = { url: string; connectionToken?: string | null; mmlScene: IMMLScene; statusUpdated: (status: NetworkedDOMWebsocketStatus) => void; windowTarget: DocumentSource; targetForWrappers: INodeLike; allowOverlay?: boolean; documentFactory?: IDocumentFactory; }; export declare class MMLNetworkSource { private options; private websocket; remoteDocumentWrapper: RemoteDocumentWrapper; private constructor(); static create(options: MMLNetworkSourceOptions): MMLNetworkSource; private init; /** * Returns a URL relative to the given host if the src starts with "ws:///" or "wss:///". * If the src does not start with either prefix, it is returned unchanged. * * @param {string} host - The host to use for constructing the potentially relative URL. * @param {string} src - The URL, which may be relative (starting with "ws:///" or "wss:///") or absolute. * @returns {string} The absolute URL (if it were previously relative ws:/// or wss:///). */ static resolveRelativeUrl(host: string, src: string): string; dispose(): void; } //# sourceMappingURL=MMLNetworkSource.d.ts.map