/** * Daemon Client * * Client library for CLI tools to communicate with kos-daemon. * Auto-spawns daemon if not running. */ export interface DaemonRequest { type: 'execute' | 'connect' | 'disconnect' | 'status' | 'shutdown' | 'ping'; command?: string; timeout?: number; cpuId?: number; cpuLabel?: string; } export interface DaemonResponse { success: boolean; output?: string; error?: string; connected?: boolean; vessel?: string; cpuId?: number; cpuTag?: string; } /** * Check if daemon is running * * On Unix: Check socket file exists and PID is alive * On Windows: Named pipes don't create filesystem entries, so check PID file only */ export declare function isDaemonRunning(): boolean; /** * Send a request to the daemon and get response */ export declare function sendRequest(request: DaemonRequest): Promise; /** * Execute a kOS command via daemon */ export declare function execute(command: string, options?: { timeout?: number; cpuId?: number; cpuLabel?: string; }): Promise; /** * Connect to kOS via daemon */ export declare function connect(options?: { cpuId?: number; cpuLabel?: string; }): Promise; /** * Disconnect from kOS via daemon */ export declare function disconnect(): Promise; /** * Get daemon status */ export declare function status(): Promise; /** * Shutdown daemon */ export declare function shutdown(): Promise; /** * Ping daemon (for health checks) */ export declare function ping(): Promise; //# sourceMappingURL=daemon-client.d.ts.map