import { ControlClientError } from './client.js'; import type { ControlRequest, ControlResponse } from './protocol.js'; export interface SessionSocket { /** PID parsed from the socket filename. */ pid: number; socketPath: string; } export interface SessionResult extends SessionSocket { /** Server response, or null if the socket was unreachable. */ response: ControlResponse | null; /** Set when the socket couldn't be reached. */ clientError?: ControlClientError; /** True when the socket was stale (refused / missing) and got unlinked. */ reaped: boolean; } /** * List the `.sock` entries in `controlDir`, sorted by PID for stable * output. Returns `[]` if the directory is missing. Ignores anything that * isn't a `.sock` name. */ export declare function listSessionSockets(controlDir: string): SessionSocket[]; /** * Send `request` to every live session socket in parallel and collect the * per-session outcomes. Sockets that refuse the connection or have vanished * are treated as stale: they're unlinked and reported with `reaped: true`. * Never throws — transport failures land in each result's `clientError`. */ export declare function broadcast(controlDir: string, request: ControlRequest, timeoutMs?: number): Promise; //# sourceMappingURL=broadcast.d.ts.map