import type { WorkerThreadFn } from "../models/thread.js"; /** * Initialization function for script-based worker threads * @example * ```ts * // worker.js * import { workerInit } from 'nanothreads.js.js'; * * workerInit(self, (a, b) => a + b); * ``` * * @see {@link Thread} to see how to create the worker thread * */ export declare const workerInit: (target: DedicatedWorkerGlobalScope["self"] | import("node:worker_threads").MessagePort, func: WorkerThreadFn, maxConcurrent?: number) => void;