/**
 * Lazy-initialized Prisma client singleton.
 *
 * The database connection is NOT established at import time or during cold start.
 * It only connects when the first CMS operation (admin action, content query, etc.)
 * actually calls `getDB()`. This means:
 *
 * - Frontend pages that don't query CMS content never touch the database
 * - The admin panel code only triggers a connection when the route is accessed
 * - Serverless cold starts that don't hit CMS paths incur zero DB overhead
 */
/** Returns the lazily-initialized Prisma client. Connection is established on first call. */
export declare function getDB<T = unknown>(): T;
/** Initialize the database client. Called once during CMS bootstrap. */
export declare function initDB(client: unknown): void;
/** Check whether the database client has been initialized without triggering creation. */
export declare function isDBInitialized(): boolean;
export { createDatabaseClient, createDatabaseClientFromEnv, detectProvider, } from './db/create-adapter.js';
export type { DatabaseConfig, DatabaseProvider } from './db/create-adapter.js';
//# sourceMappingURL=db.d.ts.map