import * as plugins from './plugins.js'; import type { TDatabaseConfig } from './skr.types.js'; /** An owned SmartData transaction session (`db.createSession()`). */ export type TDbSession = plugins.nosqldb.SmartdataSession; /** * Binds skr's models to a database: the injected one, or a connection skr * opens from the URL. The first call binds; later calls return the bound db. * Collections are prepared by `getDb()` (skr.storage.ts), not here. */ export declare const connectDb: (config?: TDatabaseConfig) => Promise; export declare const getDbSync: () => plugins.nosqldb.SmartdataDb; /** * Unbinds skr's models. A connection skr opened is closed; an injected * database stays open — its owner closes it. */ export declare const closeDb: () => Promise;