/** * Daemon composition root: the real ACP runner + the HTTP daemon + discovery file + * lifecycle. Invoked as `--daemon-run` by the shim's detached spawn, or in the foreground * via `daemon run`. All diagnostics go to stderr (the detached spawn redirects it to * daemon.log). */ export interface RunDaemonOptions { port?: number; /** * Replace a stale daemon that still holds the family's discovery pointer. The predecessor is * deliberately left running to finish its in-flight work, so a successor never fights for * the port — it binds the explicitly requested port if one was given (falling back to an * ephemeral one when that is taken), otherwise an ephemeral one, and repoints the pointer at * itself, demoting the predecessor to a lame duck (whose pid no longer matches the pointer). * Set by the shim (`--supersede`) when the live daemon is older than the shim. */ supersede?: boolean; } export declare function resolveDaemonPort(explicit?: number): number; export declare function runDaemon(options?: RunDaemonOptions): Promise<"started" | "already-running">; //# sourceMappingURL=run-daemon.d.ts.map