/**
 * Utilities for cleaning up zombie/stale Crewly backend processes.
 *
 * @module cli/utils/process-cleanup
 */
/**
 * Kill any zombie backend processes from previous runs that are still holding
 * the port or consuming resources. Uses lsof to find processes on the port
 * and also searches for any stale crewly backend node processes.
 *
 * @param port - The port to check for zombie processes.
 * @param logFn - Logging function for status messages.
 */
export declare function killZombieProcesses(port: number, logFn?: (msg: string) => void): void;
/**
 * Kill orphaned vitest worker processes that survived agent session termination.
 * These accumulate when exec() kills only the parent shell but leaves
 * vitest's forked worker pool running.
 *
 * @param myPid - Current process PID to exclude from killing.
 * @param logFn - Logging function for status messages.
 */
export declare function killOrphanedTestProcesses(myPid?: number, logFn?: (msg: string) => void): void;
//# sourceMappingURL=process-cleanup.d.ts.map