/** * The worker side of `WebWorker`. Call it at the top level of a worker module * with the function that does the work. * * ```ts * // transcode.worker.ts * import { workerScript } from "webappwiz/worker/script"; * * workerScript(async (job) => transcode(job)); * ``` * * It acknowledges each request before starting on it, so the page can tell a * slow worker from one that never heard the message. */ export declare function workerScript(work: (input: Input) => Promise): void;