/** * Create a temporary directory and delete it at the end of the test. * * @param {import('ava').ExecutionContext} t - the AVA test context * @param {Object} options * @param {Array} options.command - a shell command to spawn a process * @param {{ [name: string]: string }} [options.env] - Environment variables to * pass into the process * @param {string} [options.cwd] - Working directory in which to run the process * * @return {{ * childProcess: import('node:child_process').ChildProcess * output: string, * events: import('node:events').EventEmitter, * waitForOutput(output: string | RegExp, timeout?: number): Promise, * waitUntilExit(): Promise * }} */ export default function _default(t: import('ava').ExecutionContext, { command: [command, ...args], env, cwd }: { command: Array; env?: { [name: string]: string; }; cwd?: string; }): { childProcess: import('node:child_process').ChildProcess; output: string; events: import('node:events').EventEmitter; waitForOutput(output: string | RegExp, timeout?: number): Promise; waitUntilExit(): Promise; };