import type * as t from '@babel/types'; import type { RegistrationTarget } from './types.js'; /** * Find the nearest *.module.ts file by walking up from targetDir toward src/. * Prefers a module matching the directory name (e.g. user/ → user.module.ts). * Pass `excludeFile` to skip a specific path (e.g. a module file that was just generated). */ export declare function findParentModule(targetDir: string, excludeFile?: string): string | null; /** * Register a class in a parent module file: * 1. Add an import statement * 2. Push the class name into the appropriate @Module({}) array */ export declare function registerInModule(modulePath: string, className: string, generatedFilePath: string, target: RegistrationTarget, dryRun: boolean): Promise; /** * Walk the Babel AST to find the @Module({...}) decorator and push className * into the specified array property (imports/controllers/providers). */ export declare function addToModuleDecorator(ast: t.Program, target: RegistrationTarget, className: string): boolean; //# sourceMappingURL=module-updater.d.ts.map