/** *
*

Official Kysely adapter for Auth.js / NextAuth.js.

* * * *
* * ## Installation * * ```bash npm2yarn * npm install @auth/kysely-adapter kysely * ``` * * @module @auth/kysely-adapter */ import { Kysely } from "kysely"; import { type Adapter, type AdapterUser, type AdapterAccount, type AdapterSession, type VerificationToken } from "@auth/core/adapters"; export interface Database { User: AdapterUser; Account: AdapterAccount; Session: AdapterSession; VerificationToken: VerificationToken; } export declare const format: { from(object?: Record): T; to(object: Record): T_1; }; export declare function KyselyAdapter(db: Kysely): Adapter; /** * Wrapper over the original `Kysely` class in order to validate the passed in * database interface. A regular Kysely instance may also be used, but wrapping * it ensures the database interface implements the fields that Auth.js * requires. When used with `kysely-codegen`, the `Codegen` type can be passed as * the second generic argument. The generated types will be used, and * `KyselyAuth` will only verify that the correct fields exist. * @noInheritDoc */ export declare class KyselyAuth extends Kysely { } export type Codegen = { [K in keyof Database]: { [J in keyof Database[K]]: unknown; }; }; //# sourceMappingURL=index.d.ts.map