import { Json, WireError } from "@rulvar/core"; //#region src/sandbox-worker.d.ts /** Runner-to-worker bootstrap message; the port rides the transfer list. */ interface SandboxInitMessage { t: "init"; port: unknown; source: string; args: Json; runId: string; } /** Worker lifecycle messages the RUNNER consumes (the bridge never sees them). */ type SandboxLifecycleMessage = { t: "done"; value: Json; } | { t: "fail"; error: WireError; }; //#endregion export { SandboxInitMessage, SandboxLifecycleMessage };