/** * Write PID to file. Creates parent directories if needed. */ export declare function writePidFile(filePath: string, pid: number): void; /** * Read PID from file. Returns null if file doesn't exist or contains invalid data. */ export declare function readPidFile(filePath: string): number | null; /** * Write port number to file. Creates parent directories if needed. */ export declare function writePortFile(filePath: string, port: number): void; /** * Read port from file. Returns null if file doesn't exist or contains invalid data. */ export declare function readPortFile(filePath: string): number | null; /** * Remove PID file. No-op if file doesn't exist. */ export declare function removePidFile(filePath: string): void; /** * Remove port file. No-op if file doesn't exist. */ export declare function removePortFile(filePath: string): void; /** * Check if a process with the given PID is running. * Uses kill(pid, 0) which checks existence without sending a signal. */ export declare function isDaemonRunning(pid: number): boolean; //# sourceMappingURL=daemon-utils.d.ts.map