import type { GatewayConfig, DaemonStatus } from "./types.js"; /** * Daemon manager for running the gateway in the background */ export declare class GatewayDaemon { private pidFile; private logFile; private configFile; constructor(); private resolveRuntime; /** * Start the gateway as a daemon */ start(config: GatewayConfig): Promise; /** * Stop the gateway daemon */ stop(): Promise; /** * Restart the gateway daemon */ restart(): Promise; /** * Get the status of the gateway daemon */ getStatus(): DaemonStatus; /** * Check if the gateway is running */ isRunning(): boolean; /** * Get the PID from the PID file */ private getPid; /** * Check if a process is running */ private isProcessRunning; /** * Get process uptime in milliseconds */ private getProcessUptime; /** * Remove the PID file */ private removePidFile; /** * Save gateway configuration */ private saveConfig; /** * Load gateway configuration */ private loadConfig; /** * Get the log file path */ getLogFile(): string; /** * Get the PID file path */ getPidFile(): string; /** * Get the config file path */ getConfigFile(): string; }