/**
 * Environment Detector for CLIProxyAPI
 *
 * Detects headless environments and manages OAuth callback ports.
 */
import { CLIProxyProvider } from '../types';
/**
 * Detect if running in a headless environment (no browser available)
 *
 * IMPROVED: Avoids false positives on Windows desktop environments
 * where isTTY may be undefined due to terminal wrapper behavior.
 *
 * Case study: Vietnamese Windows users reported "command hangs" because
 * their terminal (PowerShell via npm) didn't set isTTY correctly.
 */
export declare function isHeadlessEnvironment(): boolean;
/**
 * Kill any process using a specific port
 * Used to free OAuth callback port before authentication
 */
export declare function killProcessOnPort(port: number, verbose: boolean): boolean;
/**
 * Get platform-specific troubleshooting for OAuth timeout
 */
export declare function getTimeoutTroubleshooting(provider: CLIProxyProvider, port: number | null): string[];
/**
 * Display a single step status line
 */
export declare function showStep(step: number, total: number, status: 'ok' | 'fail' | 'progress', message: string): void;
//# sourceMappingURL=environment-detector.d.ts.map