import { BaseMessage, DataType } from '../other/message'; import { ClientRefType, ClusterClient } from '../core/clusterClient'; import { Serializable } from '../types'; import { Worker } from '../classes/worker'; import { Cluster } from '../core/cluster'; import { Child } from '../classes/child'; /** Handles messages for the cluster. */ export declare class ClusterHandler { private cluster; private ipc; /** Creates an instance of ClusterHandler. */ constructor(cluster: Cluster, ipc: Worker | Child); /** Handles the message received, and executes the callback. (Not meant to be used by the user.) */ handleMessage(message: BaseMessage): Promise; } /** Handles messages for the cluster client. */ export declare class ClusterClientHandler { private clusterClient; /** Creates an instance of ClusterClientHandler. */ constructor(clusterClient: ClusterClient); /** Handles the message received, and executes the callback. (Not meant to be used by the user.) */ handleMessage(message: BaseMessage): Promise; }