import * as Layer from "effect/Layer"; import * as Worker from "effect/workers/Worker"; /** * Provides the Bun `WorkerPlatform` together with a `Worker.Spawner` created * from the supplied worker spawning function. * * @stability unstable * @category layers * @since 4.0.0 */ export declare const layer: (spawn: (id: number) => globalThis.Worker) => Layer.Layer; /** * Provides the Bun `WorkerPlatform`, wiring worker messages and errors into * Effect workers and requesting graceful worker shutdown during scope * finalization before terminating on timeout. * * @stability unstable * @category layers * @since 4.0.0 */ export declare const layerPlatform: Layer.Layer; //# sourceMappingURL=BunWorker.d.ts.map