export function startWorker(path: any, options?: {}): Worker;
/**
 * Restart all the worker threads
 * @param name If there is a specific set of threads that need to be restarted, they can be specified with this
 * parameter
 * @param maxWorkersDown The maximum number of worker threads to restart at once. In restarts, we start new
 * threads at the same time we shutdown new ones. However, we usually want to limit how many we do at once to avoid
 * excessive load and to keep things responsive. This parameter throttles the restarts to minimize load from
 * thread startups.
 * @returns {Promise<void>}
 */
export function restartWorkers(name?: any, maxWorkersDown?: number, startReplacementThreads?: boolean): Promise<void>;
export function shutdownWorkers(name: any): Promise<void>;
export function shutdownWorkersNow(name: any): Promise<any[]>;
export const workers: any[];
export function setMonitorListener(listener: any): void;
export function onMessageFromWorkers(listener: any): void;
export function onMessageByType(type: any, listener: any): void;
export function broadcast(message: any, includeSelf: any): Promise<void>;
export function broadcastWithAcknowledgement(message: any): Promise<any>;
export function getWorkerIndex(): any;
export function getWorkerCount(): any;
export function getTicketKeys(): any;
export function setMainIsWorker(isWorker: any): void;
export function setTerminateTimeout(newTimeout: any): void;
export let getThreadInfo: any;
export function watchDir(dir: any, beforeRestartCallback: any): Promise<void>;
import { Worker } from "node:worker_threads";
export declare let whenThreadsStarted: Promise<any>;
export { resolve as threadsHaveStarted };
