import { Rule, Tree } from '@angular-devkit/schematics'; import { GenerateGlobalErrorHandlingSchema } from './schema'; /** * Generates a Rule that will create the files based on the templates and move them to * the path that has been set on the schematic options. * @param options The options for running the schematic. * @throws a SchematicsException if the name of the generated class will be ErrorHandler. * @returns A rule to be chained. */ export declare const createFilesIfTheyDontExistYet: (options: GenerateGlobalErrorHandlingSchema) => Rule; /** * Generates a rule that will add the global error handling module to the given module file and imports the error handler * to the module file as well. * * The error handler will be passed as the first argument to the global error handling module that is imported. * @param host The host tree structure. * @param modulePath The path of the module file. * @param options The options for running the schematic. * @returns A rule to be chained. */ export declare const addModuleImports: (host: Tree, modulePath: string, options: GenerateGlobalErrorHandlingSchema) => Rule;