import { ClusterIPCOpCodes, SocketStates } from '../constants'; export declare namespace ClusterIPCTypes { interface IPCMessage { op: ClusterIPCOpCodes; data: any; request: boolean; clusterId?: number; shard?: number; } interface Close { code: number; reason: string; shardId: number; } interface Eval { error?: { message: string; name: string; stack: string; }; code: string; ignored?: boolean; nonce: string; result?: any; results?: Array<[any, boolean]>; } interface FillInteractionCommands { data: Array; } interface IdentifyRequest { shardId: number; } interface RestRequest { data?: any; error?: { message: string; name: string; stack: string; }; result?: any; args?: Array; hash: string; name: string; } interface ShardState { shardId: number; state: SocketStates; } }