import type { HostTransport } from "./protocol"; export interface SpawnHostOptions { instanceId: string; /** argv[1] for the child — the CLI entry point. Defaults to this process's. */ entryPoint?: string; timeoutMs?: number; } /** * Connect to the host for this instance, spawning it if none is listening. * * Attach-first rather than spawn-first: the host outliving the streamer is the * feature, so the common case after a restart is that one is already there. */ export declare function connectOrSpawnHost(options: SpawnHostOptions): Promise; /** * Spawn the host so it survives this process. * * Three properties, each load-bearing: * * - `detached` puts it in its own process group, so a Ctrl-C or a group kill * aimed at the streamer does not take the agents with it. * - `stdio: "ignore"` means it holds none of our descriptors. A child that * inherited our stdout keeps a pipe open that the parent's exit cannot * close, and on POSIX would also receive our terminal's SIGHUP — which is * precisely the hangup this whole feature exists to avoid. * - `unref()` removes it from our event loop, so the streamer can exit while * the host keeps running. */ export declare function spawnDetachedHost(socketPath: string, entryPoint?: string): void; //# sourceMappingURL=spawn-host.d.ts.map