/**
 * Connect to PM2 if not already connected
 * Returns a promise that resolves when the connection is established
 */
export declare const connectToPM2: () => Promise<void>;
/**
 * Safely disconnect from PM2
 * Use this when shutting down the server
 */
export declare const disconnectFromPM2: () => Promise<void>;
/**
 * 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: <T = any>(command: (callback: (err: Error | null, result?: T) => void) => void) => Promise<T>;
