import { SqlSlowMonitor } from '../monitor'; type PrismaClientLike = any; /** * Attach sql-slow monitoring to a Prisma Client instance. * * Prisma emits 'query' events when `log: ['query']` is enabled in the * PrismaClient constructor — OR via the experimental `$on('query', ...)` API. * We hook into that event and forward timing data to the monitor. * * ⚠️ If you create your PrismaClient WITHOUT `log: ['query']`, the events * will not fire. Example: * new PrismaClient({ log: [{ level: 'query', emit: 'event' }] }) */ export declare function attachPrismaAdapter(prisma: PrismaClientLike, monitor: SqlSlowMonitor): void; export {}; //# sourceMappingURL=prismaAdapter.d.ts.map