/** * The one entry point that makes a database usable for skr: bind it, run the * versioned migrations (ts_migration/), then install every model's collection * and indexes — before anything opens a transaction, because index DDL inside * a running transaction on the same collection stalls until the deadline. */ import type * as plugins from './plugins.js'; import type { TDatabaseConfig } from './skr.types.js'; /** * Binds skr to the configured database (first call) and prepares it once: * migrations, then every model's collection. A failed preparation is retried * by the next call. */ export declare const getDb: (config?: TDatabaseConfig) => Promise;