import type { DaemonState } from './types'; declare const DAEMON_NAME: string; declare const OUT_LOG: string; declare const ERR_LOG: string; /** * Read env vars from ~/.claude/settings.json so the daemon can forward them * to the Claude agent SDK subprocess (which otherwise wouldn't have them * because they are injected by Claude Code at runtime, not by the user's shell). */ declare function readClaudeSettingsEnv(): Record; /** * Start the daemon process via detached spawn. * * The spawned process writes its own PID to STATE_FILE on startup * (see daemon-entry.ts). We wait for STATE_FILE to appear with a * gatewayUrl as the readiness signal. */ export declare function startDaemon(gatewayUrl: string): Promise; /** * Stop the daemon process. * * SIGTERM → poll for exit (200ms × 10s) → SIGKILL fallback → remove state file. */ export declare function stopDaemon(): Promise; /** * Check if the daemon is running. * * Reads STATE_FILE and pings the PID. If state exists but the process * is dead, cleans up the stale state and returns false. */ export declare function isDaemonRunning(): Promise; /** * Read the current daemon state. */ export declare function readDaemonState(): DaemonState | null; export { DAEMON_NAME, OUT_LOG, ERR_LOG, readClaudeSettingsEnv };