import { SpawnOptions } from "child_process"; export interface ProcessResult { cmd: string; args: string[]; options?: ExecOptions; stdout: string[]; stderr: string[]; exitCode: number; error?: Error; } interface ExecOptions extends SpawnOptions { trimOutputs?: boolean; } export declare function exec(cmd: string, args: string[], opts?: ExecOptions): Promise; export declare class ExecError extends Error { private _result; private static generateMessage; get result(): ProcessResult; constructor(_result: ProcessResult); } export {};