import { CommandResult } from '../types/platform';
import { ExecuteOptions } from '../types/config';
/**
 * 命令执行器
 *
 * 负责在不同平台上执行系统命令，提供统一的接口和错误处理
 */
export declare class CommandExecutor {
    private platform;
    private defaultOptions;
    constructor(platform: string, defaultOptions?: ExecuteOptions);
    /**
     * 执行命令并返回结果
     */
    execute(command: string, options?: ExecuteOptions): Promise<CommandResult>;
    /**
     * 执行多个命令
     */
    executeMultiple(commands: string[], options?: ExecuteOptions): Promise<CommandResult[]>;
    /**
     * 并发执行多个命令
     */
    executeConcurrent(commands: string[], options?: ExecuteOptions): Promise<CommandResult[]>;
    /**
     * 执行命令并流式处理输出
     */
    executeStream(command: string, onData: (data: string, isError: boolean) => void, options?: ExecuteOptions): Promise<CommandResult>;
    /**
     * 检查命令是否可用
     */
    isCommandAvailable(command: string): Promise<boolean>;
    /**
     * 获取命令的版本信息
     */
    getCommandVersion(command: string, versionFlag?: string): Promise<string>;
    /**
     * 设置默认选项
     */
    setDefaultOptions(options: Partial<ExecuteOptions>): void;
    /**
     * 获取默认选项
     */
    getDefaultOptions(): ExecuteOptions;
    /**
     * 转义命令参数
     */
    escapeArgument(arg: string): string;
    /**
     * 构建安全的命令字符串
     */
    buildCommand(command: string, args?: string[]): string;
    private tokenizeCommand;
    /**
     * 带超时执行命令
     */
    private executeWithTimeout;
}
//# sourceMappingURL=command-executor.d.ts.map