import Database from "better-sqlite3"; export type DbConfig = { driver: "sqlite"; filename: string; } | { driver: "d1"; binding: any; } | { driver: "postgres"; connectionString: string; }; /** * Create a Drizzle ORM database instance. * Supports SQLite via better-sqlite3 and Postgres via postgres-js. * Postgres driver is loaded dynamically to avoid bundling in edge runtimes. */ export declare function createDb(config: DbConfig): Promise<(import("drizzle-orm/better-sqlite3").BetterSQLite3Database> & { $client: Database.Database; }) | (import("drizzle-orm/postgres-js").PostgresJsDatabase> & { $client: import("postgres").Sql<{}>; })>; export type DrizzleDb = Awaited>; export { createGetDb } from "./create-get-db.js"; export { runMigrations, type MigrationEntry, type MigrationSql, } from "./migrations.js"; export { getDbExec, createDbExec, getDialect, isLocalDatabase, isPostgres, intType, closeDbExec, type DbExec, type DbExecConfig, type DbExecQuery, type DbExecStatement, type Dialect, } from "./client.js"; export { table, text, integer, now } from "./schema.js"; export { ensureAdditiveColumns, type EnsureAdditiveColumnsOptions, type EnsureAdditiveColumnsResult, type EnsureAdditiveColumnsLogger, } from "./ensure-additive-columns.js"; //# sourceMappingURL=index.d.ts.map