import { FastifyPluginCallback, FastifyReply, FastifyRequest } from 'fastify'; import { AdapterBaseOptions } from '../types'; /** * Fastify plugin options */ export interface PluginOptions extends AdapterBaseOptions { /** * Url prefix, e.g.: /api */ prefix: string; /** * Callback for getting a PrismaClient for the given request */ getPrisma: (request: FastifyRequest, reply: FastifyReply) => unknown | Promise; } declare const plugin: FastifyPluginCallback; export default plugin; export { plugin as ZenStackFastifyPlugin };