///
/**
* @typedef {{
* path: string,
* writeFile(filePath: string, fileContents: string): Promise
* }} Directory
*/
/**
* @typedef {Object} Options
* @property {string} [prefix] - A directory in which to create the temporary
* directory
*/
/**
* Create a temporary directory and delete it at the end of the test.
*
* @param {import('ava').ExecutionContext} t
* @param {Options} [options]
*
* @return {Promise<{
* path: string,
* writeFile(filePath: string, fileContents: string): Promise
* }>} an object allowing manipulation of files within the directory.
*/
export default function _default(t: import('ava').ExecutionContext, options?: Options): Promise<{
path: string;
writeFile(filePath: string, fileContents: string): Promise;
}>;
export type Directory = {
path: string;
writeFile(filePath: string, fileContents: string): Promise;
};
export type Options = {
/**
* - A directory in which to create the temporary
* directory
*/
prefix?: string;
};
import path from 'node:path';