import type { JSONObject } from "@fastify/swagger"; import type { FastifyTypeProvider } from "fastify"; import type { FastifyRouteSchemaDef, FastifySchema } from "fastify/types/schema"; import { z, ZodType } from "zod"; export interface ZodTypeProvider extends FastifyTypeProvider { readonly output: this["input"] extends z.ZodSchema ? z.infer : never; } export declare function validatorCompiler({ schema, }: FastifyRouteSchemaDef>): (data: unknown) => { value: unknown; error?: undefined; } | { error: z.ZodError; value?: undefined; }; export declare function serializerCompiler(): (data: ZodType) => string; export declare function swaggerTransform({ schema, url, }: { readonly schema: FastifySchema; readonly url: string; }): { readonly schema: JSONObject; readonly url: string; };