import type { PersistenceDriver } from "../persistence-driver.js"; /** * Minimal Drizzle DB shape we need. We don't import a concrete backend type * (PgDatabase / BaseSQLiteDatabase / ...) so the driver works for any of them. * The runtime calls match Drizzle's universal builder API. */ type AnyDrizzleDB = any; export interface DrizzleDriverOptions { /** A Drizzle database instance — `drizzle(...)` from any backend module. */ db: AnyDrizzleDB; /** * The user's schema namespace, typically `import * as schema from "./schema"`. * The driver resolves table-name strings via `getTableName(table)` so the * JS variable name doesn't have to match the SQL table name. */ schema: Record; dialect: "sqlite" | "postgres"; } export interface DrizzleDriverPublic extends PersistenceDriver { /** The underlying Drizzle instance — escape hatch for hand-written queries. */ readonly db: AnyDrizzleDB; } export declare function drizzleDriver(opts: DrizzleDriverOptions): DrizzleDriverPublic; export {}; //# sourceMappingURL=drizzle-driver.d.ts.map