/**
 * PM2 Service Lifecycle Management
 * Utilities for managing background services with PM2.
 */
export interface ServiceConfig {
    name: string;
    script: string;
    cwd: string;
    env?: Record<string, string>;
    instances?: number;
    maxMemory?: string;
}
/**
 * Build a prompt for Claude to help with PM2 lifecycle management.
 * @param action - The PM2 action (start, stop, restart, delete, logs, status, scale)
 * @returns A prompt describing what PM2 actions are available
 */
export declare function buildPM2Prompt(action: string): string;
/**
 * Check if PM2 is installed and available.
 * @returns true if pm2 command is available, false otherwise
 */
export declare function isPM2Available(): boolean;
/**
 * List all PM2 services and return the formatted output.
 * @param cwd - Working directory to run the command in
 * @returns PM2 list output as a string
 */
export declare function listPM2Services(cwd: string): string;
/**
 * Build a prompt for creating a PM2 ecosystem configuration file.
 * @param cwd - Working directory where the ecosystem file will be created
 * @returns A prompt with guidance on creating ecosystem.config.js
 */
export declare function buildEcosystemPrompt(cwd: string): string;
/**
 * Pretty-print PM2 status output with colored formatting.
 * @param output - Raw PM2 list output
 */
export declare function printPM2Status(output: string): void;
