/**
 * Lifecycle Manager - Spawn/Kill/Poll operations for CLIProxy
 *
 * Handles:
 * - Spawning CLIProxyAPI binary
 * - Waiting for proxy readiness via TCP polling
 * - Killing proxy processes
 */
/// <reference types="node" />
import { ChildProcess } from 'child_process';
import { CLIProxyBackend } from '../types';
/**
 * Wait for TCP port to become available
 * Uses polling since CLIProxyAPI doesn't emit PROXY_READY signal
 */
export declare function waitForProxyReady(port: number, timeout?: number, pollInterval?: number): Promise<void>;
/**
 * Spawn CLIProxyAPI binary with given config
 */
export declare function spawnProxy(binaryPath: string, configPath: string, verbose: boolean): ChildProcess;
/**
 * Wait for proxy to be ready with progress indication
 */
export declare function waitForProxyReadyWithSpinner(port: number, timeout: number, pollInterval: number, backend: CLIProxyBackend, configPath: string): Promise<void>;
/**
 * Check if a port is available
 */
export declare function isPortAvailable(port: number): Promise<boolean>;
/**
 * Find an available port in range
 */
export declare function findAvailablePort(startPort: number, range?: number): Promise<number>;
//# sourceMappingURL=lifecycle-manager.d.ts.map