import type { GenFlags, MigrateFlags } from "./args.js"; import type { Dialect } from "./kysely.js"; export declare const MIGRATE_DEFAULT_OUT_DIR = "./.metaobjects/migrations"; export interface ResolvedGenConfig { dryRun: boolean; entities: string[]; } export interface ResolvedD1Config { binding: string | undefined; remote: boolean; autoApply: boolean; wranglerConfigPath: string | undefined; } export interface ResolvedMigrateConfig { outDir: string; databaseUrl: string | undefined; dialect: Dialect | undefined; onAmbiguous: "abort" | "rename" | "drop-add"; allow: string[]; slug: string | undefined; dryRun: boolean; /** Run pending migration files against the DB (postgres/sqlite, ledger-backed). */ apply: boolean; /** * Roll back all applied migrations newer than this target (target retained), * postgres/sqlite only. Mutually exclusive with apply. */ rollback: string | undefined; yes: boolean; /** Use live-DB introspection instead of the committed snapshot. */ fromDb: boolean; /** Seed the snapshot and exit (no migration). */ baseline: boolean; /** Replay committed migration files, no diff. */ applyPending: boolean; d1: ResolvedD1Config; } export declare function resolveGenConfig(flags: GenFlags): ResolvedGenConfig; /** * Resolve the D1 connection config (binding / remote / wranglerConfigPath) from * CLI flags + `.metaobjects/config.json`'s `migrate.d1` block, flags-win-except- * remote-is-OR'd — the same precedence `resolveMigrateConfig` applies inline * for `meta migrate --dialect d1`. Factored out (#225) so `meta verify --d1` * honors the identical local-vs-remote notion without a second, divergent * implementation of the same defaulting rule. */ export declare function resolveD1Config(flags: { d1Binding: string | undefined; remote: boolean; apply?: boolean; }, metaRoot: string): Promise; export declare function resolveMigrateConfig(flags: MigrateFlags, metaRoot: string): Promise; //# sourceMappingURL=config.d.ts.map