/** * PID Manager for MAMA Standalone * * Manages PID file for daemon process tracking */ /** * Process information */ export interface ProcessInfo { /** Process ID */ pid: number; /** Start time (Unix timestamp) */ startedAt: number; } /** * Get the full path to PID file */ export declare function getPidPath(): string; /** * Check if PID file exists */ export declare function pidFileExists(): boolean; /** * Write PID file with process information * * @param pid - Process ID to write */ export declare function writePid(pid: number): Promise; /** * Read process information from PID file * * @returns Process info or null if file doesn't exist */ export declare function readPid(): Promise; /** * Delete PID file */ export declare function deletePid(): Promise; /** * Check if a process with given PID is running * * @param pid - Process ID to check * @returns true if process is running */ export declare function isProcessRunning(pid: number): boolean; /** * Check if MAMA daemon is currently running * * @returns Process info if running, null otherwise */ export declare function isDaemonRunning(): Promise; /** * Get uptime in human-readable format * * @param startedAt - Start timestamp * @returns Human-readable uptime string */ export declare function getUptime(startedAt: number): string; /** * Get PID file modification time (for last activity tracking) * * @returns Modification timestamp or null */ export declare function getPidFileModTime(): Promise; export { expandPath } from '../config/config-manager.js'; //# sourceMappingURL=pid-manager.d.ts.map