/** * Shared IPC error detection utilities. * * Used by both Supervisor and DirectMessageBus to distinguish expected * channel-close errors (EPIPE, ECONNRESET, etc.) from real bugs. */ /** * IPC protocol version negotiated during worker startup. * * Increment this when making breaking changes to: * - forge:group-ready message shape * - UDS handshake protocol * - IPC message framing or envelope fields * * Workers send this in forge:group-ready; the Supervisor checks it. * WorkerChannelManager sends this in forge:handshake; peers check it. */ export declare const IPC_PROTOCOL_VERSION = 1; export interface NodeError extends Error { code?: string; } /** * Returns true if the error is an expected IPC error that occurs when * a worker disconnects or its channel closes during normal operation. */ export declare function isExpectedIpcError(err: unknown): boolean; //# sourceMappingURL=ipc-errors.d.ts.map