import type { ServerContext } from './context.ts'; export declare const DEFAULT_SHUTDOWN_TIMEOUT_MS = 30000; type WorkerShutdownOptions = { timeoutMs?: number | undefined; stopWaitingWhenIdle?: boolean | undefined; }; /** Send a shutdown message to a specific worker and wait for it to disconnect. */ export declare function shutdownWorker(context: ServerContext, workerId: string, shutdownOptions?: WorkerShutdownOptions): Promise; /** Send a shutdown message to all connected workers and wait for them to disconnect. */ export declare function shutdownAllWorkers(context: ServerContext, shutdownOptions?: WorkerShutdownOptions): Promise; export {};