import type { RuntimeState } from './config.js'; import { type LaunchSpec } from './launch-spec.js'; export declare const DAEMON_START_TIMEOUT_MS = 30000; export declare function loadStartLaunchSpec(launchSpecPath: string, conflictingOptions?: string[]): { spec: LaunchSpec; path: string; }; export declare function buildLaunchSpecDaemonArgs(spec: LaunchSpec, daemonScript: string, launchSpecPath: string): string[]; export declare function isFreshDaemonRuntime(state: RuntimeState | null, preSpawnStartedAt: string | undefined, launcherPid: number, isAlive: (pid: number) => boolean): state is RuntimeState & { pid: number; }; export declare function waitForFreshDaemonRuntime(loadState: () => RuntimeState | null, preSpawnStartedAt: string | undefined, launcherPid: number, isAlive: (pid: number) => boolean, options?: { timeoutMs?: number; intervalMs?: number; sleep?: (milliseconds: number) => Promise; }): Promise<(RuntimeState & { pid: number; }) | null>; export declare function cleanupFailedDaemonStart(pid: number | undefined, isAlive: (pid: number) => boolean, terminate: (pid: number) => boolean, forceKill: (pid: number) => boolean, options?: { timeoutMs?: number; sleep?: (milliseconds: number) => Promise; }): Promise;