import type { Socket } from "node:net"; export interface HostHello { role: "attach" | "control"; cols?: number; rows?: number; } export type HostControlOp = "snapshot" | "status" | "detach" | "terminate" | "terminate-idle" | "input"; export declare function connectHost(id: string, hello: HostHello): Promise; /** `id` is a job id, or a host socket path (workers know the path, not the runtime dir). */ /** `extra` goes with the op (M30: `{ data }` for input). */ export declare function hostControl(id: string, op: HostControlOp, timeoutMs?: number, extra?: Record): Promise;