import { type AugmentConfig } from "../config.js"; import type { AugmentService } from "../service.js"; import type { DaemonInfo } from "../types.js"; export interface RunningDaemon { info: DaemonInfo; close(): Promise; /** * Present only when git auto-commit is active (flag on and memoryRoot is a git * root); resolves once no snapshot commit is pending or in flight. For tests. */ commitIdle?(): Promise; } /** Injectable hooks for tests (avoid process.exit in the test runner). */ export interface StartHttpDaemonOptions { /** * Called after POST /daemon/restart accepts. Defaults to close + spawn + exit. * Tests may replace this with a no-op or a close-only implementation. */ scheduleRestart?: (close: () => Promise) => void; } export declare function startHttpDaemon(config: AugmentConfig, service: AugmentService, options?: StartHttpDaemonOptions): Promise;