import { AnyRepositoryName, RepositoryDbAdapter } from './repository.mjs'; import '../types-DdEZ8iqq.mjs'; import '../core/metrics.mjs'; import '../core/flag-types.mjs'; type PrismaAdapterModelName = AnyRepositoryName; interface PrismaDelegateLike { create(args: { data: Record; }): Promise; findFirst?(args: { where: Record; }): Promise; findUnique?(args: { where: Record; }): Promise; findMany(args?: { where?: Record; orderBy?: Array>; }): Promise; update?(args: { where: Record; data: Record; }): Promise; updateMany?(args: { where: Record; data: Record; }): Promise; delete?(args: { where: Record; }): Promise; deleteMany?(args: { where: Record; }): Promise; } type PrismaClientLike = { $disconnect?: () => Promise; _runtimeDataModel?: { models?: Record | Record; }>; }; } & Record; type PrismaAdapterDelegates = Partial>; interface PrismaAdapterOptions { /** Prisma client instance owned by the application. */ prisma: PrismaClientLike; /** Map Rollease repositories to Prisma delegate names or delegate objects. */ delegates?: PrismaAdapterDelegates; /** Map Rollease repositories to Prisma model names for optional field validation. */ modelNames?: Partial>; /** Validate delegate presence and methods during construction. Defaults to true. */ validateDelegates?: boolean; /** Validate Prisma model fields when runtime metadata is available. Defaults to false. */ validateModelFields?: boolean; /** Call prisma.$disconnect() from adapter.close(). Defaults to false. */ disconnectOnClose?: boolean; } declare const ROLLEASE_PRISMA_DEFAULT_DELEGATES: Record; declare const ROLLEASE_PRISMA_DEFAULT_MODELS: Record; declare const ROLLEASE_PRISMA_REQUIRED_FIELDS: Record; declare class PrismaDbAdapter extends RepositoryDbAdapter { constructor(options: PrismaAdapterOptions); } declare function createPrismaAdapter(options: PrismaAdapterOptions): PrismaDbAdapter; declare function validatePrismaDelegates(options: PrismaAdapterOptions): void; declare function validatePrismaModelFields(options: PrismaAdapterOptions): void; export { type PrismaAdapterDelegates, type PrismaAdapterModelName, type PrismaAdapterOptions, type PrismaClientLike, PrismaDbAdapter, type PrismaDelegateLike, ROLLEASE_PRISMA_DEFAULT_DELEGATES, ROLLEASE_PRISMA_DEFAULT_MODELS, ROLLEASE_PRISMA_REQUIRED_FIELDS, createPrismaAdapter, validatePrismaDelegates, validatePrismaModelFields };