// The entry of the web worker that holds a LocalSimHost's room. import type { Port } from './channel.js'; import { serveRoom } from './serveRoom.js'; // The worker's scope, with what it is used for here (the package has no DOM types). declare const self: Port; declare function setInterval(handler: () => void, milliseconds: number): unknown; declare const performance: { now(): number }; serveRoom(self, { now: () => performance.now(), seed: () => Math.floor(Math.random() * 2 ** 31), every: (milliseconds, tick) => setInterval(tick, milliseconds), });