/** * Database schema synchronization helper. * * Conditionally runs `adapter.initialize()` and `adapter.initializeGlobals()` * based on `db.syncSchema` and `migrations.mode` configuration. */ import { type MomentumConfig, type ResolvedMomentumConfig } from '@momentumcms/core'; export interface SchemaLogger { info(msg: string): void; } /** * Sync the database schema if the config allows it. * * Call this during server initialization to create/update tables. * Respects `db.syncSchema` and `migrations.mode`: * - auto (default): sync in push mode, skip in migrate mode * - true: always sync * - false: never sync */ export declare function syncDatabaseSchema(config: MomentumConfig | ResolvedMomentumConfig, log: SchemaLogger): Promise;