/** * Daemon supervisor - handles the "is the uploader daemon alive? if not, * spawn one" check invoked by `MlflowWalSpanExporter` on each WAL append. */ /** * Probe the daemon's liveness lock with a short timeout. * * Returns: * - `true` if the socket/pipe at `getLockSocketPath()` is currently * accepting connections (i.e. a daemon has bound it). * - `false` on any error (ENOENT — no socket file; ECONNREFUSED — a * stale socket file with no listener) or on probe timeout. */ export declare function isDaemonAlive(): Promise; /** * Resolve the absolute path of the daemon entry point. * * Precedence: * 1. `MLFLOW_TRACE_DAEMON_EXECUTABLE` env var — used by tests and * advanced operators who want to override the bundled daemon. * 2. The bundled daemon at `<@mlflow/core install dir>/bundle/daemon.cjs`. */ export declare function resolveDaemonEntry(): string; /** * Fork a detached daemon process. Assumes no daemon is currently bound — * the caller is responsible for guarding with {@link isDaemonAlive}. */ export declare function spawnDaemon(): void; /** * Ensure a daemon is alive; spawn one if not. */ export declare function ensureDaemon(): Promise;