import type { IdProvider } from "webappwiz/id";
import type { Duration, Timer } from "webappwiz/time";
import type { Runner } from "./runner.js";
/**
* A `Runner` over a real Web Worker running `workerScript`. Build one with
* `WebWorkerFactory` rather than directly: the worker has to be handshaken
* before it can be used.
*
* It needs the Web Locks API, which browsers have and other runtimes largely
* do not, so this is the browser implementation of `Runner` while the interface
* and the decorators around it are not.
*/
export declare class WebWorker implements Runner {
private readonly worker;
private readonly ids;
private readonly timer;
private readonly ackTimeout;
private readonly pending;
private alive;
constructor(worker: Worker, ids: IdProvider, timer: Timer, ackTimeout: Duration, lockName: string);
send(input: Input): Promise