import type { Worker } from "worker_threads"; import { PipeHandler } from "./PipeHandler.js"; /** * MasterPipe handles communication between the master process and workers. */ export declare class MasterPipe extends PipeHandler { /** * Binds a worker to the routeMessage handler for processing incoming messages. * @param worker - The worker instance to bind. */ bindWorker(worker: Worker): void; /** * Sends a message to a worker thread. * @param type - The type of the message. * @param data - The data associated with the message. * @param worker - The worker instance to send the message to. */ post(type: T, data: SendMap[T], worker: Worker): void; }