/** * Gets all of the files in the given `path` that match the extensions listed in extensions. * * @param path The path to look for all the files in. * @param extensions The file extensions to accept. If `undefined`, accepts all files. * @returns */ declare function getAllFiles(path: string, extensions?: Set): string[]; /** * Gets the package.json object. * * @returns The package json relative to the directory of the running script. */ declare function getPackageJson(): any; /** * Loads a modules default export. * * @param path The path of the module. * @param warn Whether to display warnings. * @returns The default export of the module. */ declare function loadModule(path: string, warn?: boolean): Promise; /** * Checks whether a `path` is a directory. * * @param path The path to check. * @returns true if the path is a directory. */ declare function isDir(path: string): boolean; /** * Recursively cleans out a directory. * * @param path Path of the directory to recursively delete all of the files in. */ declare function cleanDir(path: string): void; /** * Searches for and loads a config. * * @param configType The type of config to search for * @param warn Whether to warn on errors. * @param extensionRegex List of valid extensions to search for. * @returns The default export of the config module. */ declare function readConfig(configType: 'es-exec', warn?: boolean, extensionRegex?: RegExp): Promise; export { cleanDir, getAllFiles, getPackageJson, isDir, loadModule, readConfig };