import type { RunMatTestSession, WorkerSpawnInput } from "./types.js"; interface HostRequest { id: number; type: "install" | "execute" | "cancel" | "shutdown"; payload?: unknown; } interface HostResponse { id: number; ok: boolean; value?: unknown; error?: string; } export interface TestWorkerHostOptions { createSession(input: WorkerSpawnInput): Promise | RunMatTestSession; } export interface TestWorkerScope { addEventListener(type: "message", listener: (event: MessageEvent) => void): void; postMessage(message: HostResponse): void; } /** * Installs the deliberately small child-worker protocol. This code owns * transport and session lifetime only; Rust owns scheduling and semantics. */ export declare function installRunMatTestWorkerHost(scope: TestWorkerScope, options: TestWorkerHostOptions): void; export {}; //# sourceMappingURL=worker-host.d.ts.map