import { h as UnionToIntersection } from "./helper-BBvhhJRX.mjs"; import { BetterAuthOptions, BetterAuthPlugin } from "@better-auth/core"; import { BetterAuthPluginDBSchema } from "@better-auth/core/db"; //#region src/types/plugins.d.ts type InferOptionSchema = S extends Record ? { [K in keyof S]?: { modelName?: string | undefined; fields?: { [P in keyof Fields]?: string } | undefined; } } : never; type InferPluginErrorCodes = O["plugins"] extends Array ? UnionToIntersection

? P["$ERROR_CODES"] : {} : {}> : {}; //#endregion export { InferPluginErrorCodes as n, InferOptionSchema as t };