/**
 * Utilities for command and platform detection
 */
export declare const WSL_INSTALL_URL = "https://learn.microsoft.com/en-us/windows/wsl/install";
/**
 * Check if a command is installed and available in PATH
 */
export declare function isCommandInstalled(cmd: string): boolean;
/**
 * Get the resolved absolute path to a command executable.
 *
 * On Windows, this properly resolves .cmd, .bat, .exe and other executable
 * extensions through Bun.which(), which handles the PATHEXT environment
 * variable. This is essential for spawning commands correctly on Windows
 * where 'opencode' might actually be 'opencode.cmd'.
 *
 * @param cmd - The command name to resolve (e.g., 'opencode', 'claude')
 * @returns The absolute path to the command, or null if not found
 */
export declare function getCommandPath(cmd: string): string | null;
/**
 * Get the version string of a command
 * Returns null if command is not installed or version check fails
 */
export declare function getCommandVersion(cmd: string): string | null;
/**
 * Check if running on Windows
 */
export declare function isWindows(): boolean;
/**
 * Check if running on macOS
 */
export declare function isMacOS(): boolean;
/**
 * Check if running on Linux
 */
export declare function isLinux(): boolean;
/**
 * Get the appropriate script extension for the current platform
 * Returns ".ps1" on Windows, ".sh" on Unix-like systems
 */
export declare function getScriptExtension(): string;
/**
 * Get the opposite script extension (for filtering)
 * Returns ".sh" on Windows, ".ps1" on Unix-like systems
 */
export declare function getOppositeScriptExtension(): string;
/**
 * Check if WSL is installed on Windows
 * Returns false on non-Windows platforms
 */
export declare function isWslInstalled(): boolean;
/**
 * Check if colors are enabled (respects NO_COLOR standard)
 * See: https://no-color.org/
 */
export declare function supportsColor(): boolean;
/**
 * Check if the terminal supports true color (24-bit).
 *
 * Checks COLORTERM, TERM, and TERM_PROGRAM environment variables.
 * macOS Terminal.app (Apple_Terminal) does NOT support truecolor and
 * will degrade hex colors to washed-out 256-color approximations.
 */
export declare function supportsTrueColor(): boolean;
/**
 * Check if the terminal supports 256 colors
 *
 * Note: This returns true when supportsTrueColor() returns true.
 * Since supportsTrueColor() defaults to true for modern terminals,
 * this function will also return true in most cases. This is intentional -
 * most modern terminals support at least 256 colors.
 */
export declare function supports256Color(): boolean;
//# sourceMappingURL=detect.d.ts.map