export declare type Command = string | (() => void | Promise); export declare type ExecuteCommandOptions = { log?(command: string): void; }; /** * A helper function that executes a single shell command or JavaScript function. * Supports asynchronous JS functions, and executes shell commands in a child process * so that the event loop is not blocked while executing the command. * @param command * @param options * @return A promise that resolves if the command was successful, otherwise throws an `Error`. If the * command is a shell command, the error message will be stderr of the command. */ export declare function executeCommand(command: Command, { log }?: ExecuteCommandOptions): Promise;