import type { NodeExecutionRequestHandler, NodeExecutionScheduler } from "@codemation/core"; export type WorkerRuntimeHandle = Readonly<{ stop: () => Promise; }>; export interface WorkerRuntimeScheduler extends NodeExecutionScheduler { createWorker( args: Readonly<{ queues: ReadonlyArray; requestHandler: NodeExecutionRequestHandler; }>, ): WorkerRuntimeHandle; close(): Promise; }