export = Generator; /** * @typedef {object} Context * @description The context used by generator to generate files and folder structure * @property {string} originPath The folder path to origin template files * @property {object} parameters The parameters to generate the output * @property {string} targetPath The path where generated files and folders will be saved * @property {string} helpersPath The folder with handlebars helpers implementations * @property {ScafflaterOptions} options The scafflater options. */ declare class Generator { /** * Brief description of the function here. * * @summary If the description is long, write your summary here. Otherwise, feel free to remove this. * @param {object} context - The context to generate */ constructor(context: object); context: any; ignoredPatterns: string[]; ignoredFolders: string[]; handlebarsProcessor: HandlebarsProcessor; hooks: {}; generate(): Promise; promisesHelper: PromisesHelper; extensions: any; /** * * @param {any} ctx Context * @param {any} tree Tree Details * @returns {Promise} Promise */ _generate(ctx: any, tree: any): Promise; /** * Loads and merge the options of file or folder with the context options * * @param {object} tree The directory item to load options * @param {Context} context The context to load options * @returns {Promise} Brief description of the returning value here. */ loadOptions(tree: object, context: Context): Promise; } declare namespace Generator { export { Context }; } import HandlebarsProcessor = require("./processors/handlebars-processor"); /** * Helper to execute Promises */ declare class PromisesHelper { promises: any[]; exec(ctx: any, promise: any): Promise; await(): Promise; } type Context = object; import ScafflaterOptions = require("../options");