import { ChildProcess } from 'child_process';
export interface ManagedProcess {
    name: string;
    process: ChildProcess;
    pid?: number;
    killed: boolean;
}
export declare class ProcessManager {
    private processes;
    /**
     * Add a process to be managed
     */
    addProcess(name: string, process: ChildProcess): void;
    /**
     * Get a managed process by name
     */
    getProcess(name: string): ManagedProcess | undefined;
    /**
     * Get list of all managed processes
     */
    getProcessList(): ManagedProcess[];
    /**
     * Kill a specific process by name
     */
    killProcess(name: string): Promise<void>;
    /**
     * Kill all managed processes
     */
    killAll(): Promise<void>;
    /**
     * Check if a port is in use
     */
    isPortInUse(port: number): Promise<boolean>;
    /**
     * Find process using a specific port
     */
    findProcessOnPort(port: number): Promise<string | null>;
    /**
     * Kill process on specific port
     */
    killProcessOnPort(port: number): Promise<boolean>;
}
//# sourceMappingURL=processManager.d.ts.map