import { TAtscriptPlugin } from "@atscript/core"; //#region src/plugin/manifest.d.ts /** Options for the generated model manifest (see {@link dbPlugin}). */ interface TDbManifestOptions { /** * Output path for the generated module, relative to the config's `rootDir` * (with `rootDir: "src"`, `"models.gen.ts"` emits `src/models.gen.ts`). */ path: string; } //#endregion //#region src/plugin/index.d.ts /** Options for {@link dbPlugin}. */ interface TDbPluginOptions { /** * When set, full builds (`asc -f dts`) additionally emit a generated model * manifest module at this path (relative to the project root): an inventory * of every exported `@db.table` / `@db.view` entity — * `dbTables` / `dbViews` / `atscriptModels` / `modelsBySpace` (grouped by * `@db.space`). Feed it to `syncSchema(db, atscriptModels)` so newly added * models can't be silently forgotten. */ manifest?: string | TDbManifestOptions; } declare const dbPlugin: (options?: TDbPluginOptions) => TAtscriptPlugin; //#endregion export { type TDbManifestOptions, type TDbPluginOptions, dbPlugin, dbPlugin as default };