/** * Connect to PM2 if not already connected * Returns a promise that resolves when the connection is established */ export declare const connectToPM2: () => Promise; /** * Safely disconnect from PM2 * Use this when shutting down the server */ export declare const disconnectFromPM2: () => Promise; /** * Execute a PM2 command with automatic connection handling * This will connect to PM2 if needed, run the command, * and properly handle the result */ export declare const executePM2Command: (command: (callback: (err: Error | null, result?: T) => void) => void) => Promise;