import { type ChildProcessByStdio } from 'node:child_process';
import { type Readable } from 'node:stream';
export declare function extractPortFromCliArgs(args: string[]): number;
/**
 * Removes any existing --port argument from the args array.
 * Handles both --port=5555 and --port 5555 formats.
 * @param args - Array of command line arguments
 */
export declare function removePortFromArgs(args: string[]): void;
export declare function determineAppiumCliCommand(command?: string): Promise<string>;
export declare function checkInspectorPluginInstalled(appiumCommandPath: string): Promise<void>;
export declare function startAppiumForCli(appiumCommandPath: string, args: string[], timeout?: number): Promise<ChildProcessByStdio<null, Readable, Readable>>;
export declare function openBrowser(url: string): Promise<void>;
//# sourceMappingURL=cli-utils.d.ts.map