/**
 * Drizzle ORM Database Connection
 *
 * This module provides type-safe database connections using Drizzle ORM
 * with better-sqlite3 as the underlying driver.
 */
import { BetterSQLite3Database } from 'drizzle-orm/better-sqlite3';
import Database from 'better-sqlite3';
import * as schema from './drizzle-schema.js';
export type DrizzleDB = BetterSQLite3Database<typeof schema>;
/**
 * Create a Drizzle database connection from an existing better-sqlite3 database.
 * This allows gradual migration by wrapping existing database connections.
 */
export declare function createDrizzleConnection(db: Database.Database): DrizzleDB;
/**
 * Create a new Drizzle database connection from a file path.
 * Configures pragmas for optimal performance and reliability.
 */
export declare function openDrizzleDatabase(dbPath: string): {
    db: DrizzleDB;
    sqliteDb: Database.Database;
};
/**
 * Close a Drizzle database connection.
 * Since Drizzle wraps better-sqlite3, we need to close the underlying connection.
 */
export declare function closeDrizzleDatabase(sqliteDb: Database.Database): void;
export * from './drizzle-schema.js';
