import { EventEmitter } from "./events.ts";import { notImplemented } from "./_utils.ts";
const connectionSymbol = Symbol("connectionProperty");const messageCallbacksSymbol = Symbol("messageCallbacks");const nextIdSymbol = Symbol("nextId");const onMessageSymbol = Symbol("onMessage");
class Session extends EventEmitter { [connectionSymbol]: null; [nextIdSymbol]: number; [messageCallbacksSymbol]: Map<string, (e: Error) => void>;
constructor() { super(); notImplemented("inspector.Session.prototype.constructor"); }
connect() { notImplemented("inspector.Session.prototype.connect"); }
connectToMainThread() { notImplemented("inspector.Session.prototype.connectToMainThread"); }
[onMessageSymbol](_message: string) { notImplemented("inspector.Session.prototype[Symbol('onMessage')]"); }
post( _method: string, _params?: Record<string, unknown>, _callback?: (...args: unknown[]) => void, ): void { notImplemented("inspector.Session.prototype.post"); }
disconnect() { notImplemented("inspector.Session.prototype.disconnect"); }}
function open(_port?: number, _host?: string, _wait?: boolean): void { notImplemented("inspector.Session.prototype.open");}
function close() { notImplemented("inspector.Session.prototype.close");}
function url() { return undefined;}
function waitForDebugger() { notImplemented("inspector.wairForDebugger");}
const console = globalThis.console;
export { close, console, open, Session, url, waitForDebugger };
export default { close, console, open, Session, url, waitForDebugger,};