/** * Lifecycle hooks the daemon wires into the command channel (2026-10). * * - `onConnect`: the backend's agent->machine registry is IN-MEMORY and a * backend restart wipes it until the next push tick (up to 5 min for idle * agents). Pushing bridge-state the moment the channel (re)connects closes * that window instead of waiting out the cadence. * - `onRequestState`: the backend emits `orchestrator:request-state` when it * holds sockets but no machine for the calling agent - an explicit "push * now" that heals the NEXT command in seconds. */ export interface OrchestratorClientHooks { onConnect?: () => void; onRequestState?: () => void; } export declare class OrchestratorClient { private socket; private readonly pending; private readonly apiKey; private readonly apiUrl; private readonly hooks; constructor(apiKey: string, apiUrl: string, hooks?: OrchestratorClientHooks); connect(): void; disconnect(): void; get connected(): boolean; private registerResultHandlers; private registerCapacityListeners; private emit; private registerCommandHandlers; sendCommand(event: string, payload: Record, timeoutMs?: number): Promise>; signalQuestionAnswered(orchestratorTaskId: string, answerCommentId: string): void; private resolvePending; }