/**
 * Session Bridge - Integration with session tracking and proxy detection
 *
 * Handles:
 * - Session registration and unregistration
 * - Proxy detection and version checking
 * - Orphaned proxy reclamation
 * - Startup lock coordination
 */
/// <reference types="node" />
import { ChildProcess } from 'child_process';
import { CLIProxyBackend } from '../types';
export interface ProxySessionResult {
    sessionId?: string;
    proxy?: ChildProcess;
    shouldSpawn: boolean;
}
/**
 * Check for existing proxy and handle version mismatch, or determine if new spawn needed
 */
export declare function checkOrJoinProxy(port: number, timeout: number, verbose: boolean): Promise<ProxySessionResult>;
/**
 * Register a new proxy session after spawning
 */
export declare function registerProxySession(port: number, pid: number, backend: CLIProxyBackend, verbose: boolean): string;
/**
 * Setup cleanup handlers for session unregistration
 */
export declare function setupCleanupHandlers(claude: ChildProcess, sessionId: string | undefined, sessionPort: number, codexReasoningProxy: unknown, toolSanitizationProxy: unknown, httpsTunnel: unknown, verbose: boolean): void;
//# sourceMappingURL=session-bridge.d.ts.map