import { SpawnOptions } from 'child_process'; export type ExecResult = { stdout?: string; stderr?: string; }; export default class Util { static exec(command: string, ...args: string[]): Promise; static exec(options: SpawnOptions, command: string, ...args: string[]): Promise; static execute(command: string, path: string): Promise<{ stdout: any; stderr: any; }>; static commandLineExecutor(command: any): Promise; /** * Adjusts the options of a command. * If the operating system is Windows, adds `shell: true` to the command options. * This fixes an issue with the `spawn` function on Windows. cds.cmd would throw 'spawn EINVAL' error. * * @param {object} command - The command object to adjust options for. */ static adjustOptions(command: any): void; }