/** * Codegen model detection via AST (plan: `.plans/refactor/queued/codegen-ast.md` * Phase 5 / P1j Phase 3). Decides whether a model is a `BaseModel` subclass by * walking its `extends` chain in SOURCE — so `appTypes` no longer `import()`s * every model file (which drags in Mongoose and the whole model graph) just to * run an `instanceof` check. */ /** * Is the model at `srcPath` a `BaseModel` subclass? Walks the `extends` chain in * source (relative AND bare-package ancestors), matching the framework's * `BaseModel` module by its specifier basename — so an aliased import * (`import { BaseModel as BM }`) is handled too. No runtime import. */ export declare function isBaseModelSource(srcPath: string, depth?: number, cache?: Map): Promise;