/** * Recursively find all dependencies (avoiding circular) traversing the entire dependency tree * and returns a flat list of all unique, visited nodes * * @param {Object} options * @param {String} options.filename - The path of the module whose tree to traverse * @param {String} options.directory - The directory containing all JS files * @param {String} [options.requireConfig] - The path to a requirejs config * @param {String} [options.webpackConfig] - The path to a webpack config * @param {Object} [options.visited] - Cache of visited, absolutely pathed files that should not be reprocessed. * Format is a filename -> tree as list lookup table * @param {Array} [options.nonExistent] - List of partials that do not exist * @return {Object} */ export default function (options: any): Promise<{}>;