import { drizzleAdapter, type DrizzleAdapterConfig } from 'better-auth/adapters/drizzle'; import { type CreateSQLiteDatabaseOptions, type SQLiteSchema, type SQLiteTransactionProvider } from './sqlite.js'; import type { AnyRelations, EmptyRelations } from 'drizzle-orm'; export type CreateBetterAuthSQLiteAdapterOptions = Pick, 'relations' | 'schema' | 'transactionProvider'> & { /** * runs the adapter's read-only operations (`findOne`, `findMany`, `count`). * the SQLite host decides what a read session means; on a host that admits * one writer at a time and readers together, a session lookup no longer * waits for the writer turn. defaults to `transactionProvider`. */ readTransactionProvider?: SQLiteTransactionProvider; } & Omit; /** * gives Better Auth its official Drizzle adapter inside the transaction * callback owned by the SQLite host. the Drizzle adapter's transaction mode * stays disabled because it must never emit its own BEGIN or COMMIT. */ export declare function createBetterAuthSQLiteAdapter(options: CreateBetterAuthSQLiteAdapterOptions): ReturnType; //# sourceMappingURL=better-auth.d.ts.map