/** * Agentic QE v3 - Daemon Process Management * ADR-014: Background Workers for QE Monitoring * * Manages the background daemon process that runs all QE workers. * Provides start/stop/restart functionality and health monitoring. */ import { Daemon as IDaemon, DaemonStatus, WorkerManager } from './interfaces'; /** * Daemon configuration */ export interface DaemonConfig { /** Whether to auto-start workers on daemon start */ autoStart?: boolean; /** Workers to enable (defaults to all) */ enabledWorkers?: string[]; /** Log level */ logLevel?: 'debug' | 'info' | 'warn' | 'error'; /** Health check interval (ms) */ healthCheckIntervalMs?: number; } /** * Daemon implementation */ export declare class QEDaemon implements IDaemon { private _running; private _startedAt?; private _healthCheckTimer?; private workerManager; private config; constructor(config?: DaemonConfig); get running(): boolean; get uptime(): number; /** * Start the daemon */ start(): Promise; /** * Stop the daemon */ stop(): Promise; /** * Restart the daemon */ restart(): Promise; /** * Get daemon status */ getStatus(): DaemonStatus; /** * Get the worker manager for direct access */ getWorkerManager(): WorkerManager; /** * Run a specific worker immediately */ runWorker(workerId: string): Promise; private registerWorkers; private performHealthCheck; } /** * Factory function to create and configure the daemon */ export declare function createDaemon(config?: DaemonConfig): QEDaemon; /** * Get or create the global daemon instance */ export declare function getDaemon(config?: DaemonConfig): QEDaemon; /** * Reset the global daemon instance (for testing) */ export declare function resetDaemon(): void; //# sourceMappingURL=daemon.d.ts.map