import { CodeInsert } from "@authhero/adapter-interfaces"; import { Kysely } from "kysely"; import { Database } from "../db"; export declare function create(db: Kysely): (tenant_id: string, code: CodeInsert) => Promise<{ code_id: string; login_id: string; code_type: "otp" | "password_reset" | "email_verification" | "mfa_otp" | "authorization_code" | "oauth2_state" | "ticket"; expires_at: string; created_at: string; connection_id?: string | undefined; code_verifier?: string | undefined; code_challenge?: string | undefined; code_challenge_method?: "S256" | "plain" | undefined; redirect_uri?: string | undefined; otp?: string | undefined; nonce?: string | undefined; state?: string | undefined; used_at?: string | undefined; user_id?: string | undefined; }>;