import { Kysely } from 'kysely'; import { f as BetterAuthOptions, K as KyselyDatabaseType, W as Where } from '../../shared/better-auth.6fr3ElRe.js'; import '../../shared/better-auth.Bi8FQwDD.js'; import 'zod'; import '../../shared/better-auth.BLX8BItA.js'; import 'jose'; import 'better-call'; import 'better-sqlite3'; declare const createKyselyAdapter: (config: BetterAuthOptions) => Promise<{ kysely: Kysely | null; databaseType: KyselyDatabaseType | null; }>; interface KyselyAdapterConfig { /** * Database type. */ type?: KyselyDatabaseType; } declare const kyselyAdapter: (db: Kysely, config?: KyselyAdapterConfig) => (opts: BetterAuthOptions) => { id: string; create, R = T>(data: { model: string; data: T; select?: string[]; }): Promise; findOne(data: { model: string; where: Where[]; select?: string[]; }): Promise; findMany(data: { model: string; where?: Where[]; limit?: number; sortBy?: { field: string; direction: "asc" | "desc"; }; offset?: number; }): Promise; update(data: { model: string; where: Where[]; update: Record; }): Promise; updateMany(data: { model: string; where: Where[]; update: Record; }): Promise; count(data: { model: string; where?: Where[]; }): Promise; delete(data: { model: string; where: Where[]; }): Promise; deleteMany(data: { model: string; where: Where[]; }): Promise; options: KyselyAdapterConfig | undefined; }; export { KyselyDatabaseType, createKyselyAdapter, kyselyAdapter };