import * as Layer from "effect/Layer"; import * as Worker from "effect/workers/Worker"; import type * as ChildProcess from "node:child_process"; import type * as WorkerThreads from "node:worker_threads"; /** * Provides the Node `WorkerPlatform` for `worker_threads` workers and child * process workers, wiring messages, errors, and exits into Effect workers and * terminating the worker if graceful shutdown times out. * * @stability unstable * @category layers * @since 4.0.0 */ export declare const layerPlatform: Layer.Layer; /** * Provides the Node `WorkerPlatform` together with a `Worker.Spawner` created * from the supplied worker or child-process spawning function. * * @stability unstable * @category layers * @since 4.0.0 */ export declare const layer: (spawn: (id: number) => WorkerThreads.Worker | ChildProcess.ChildProcess) => Layer.Layer; //# sourceMappingURL=NodeWorker.d.ts.map