import { Boom } from "@hapi/boom"; import type { FastifyError, FastifyInstance } from "fastify"; import { $ZodError } from "zod/v4/core"; interface IResError { statusCode: number; name: string; message: string; data?: unknown; } interface Config { env: string; } export declare function boomify(rawError: FastifyError | Boom | Error | $ZodError, config: Config): Boom; export declare function formatResponseError(rawError: FastifyError | Boom | Error | $ZodError, config: Config): IResError; export declare function errorMiddleware(server: FastifyInstance, config: Config): void; export {}; //# sourceMappingURL=errorMiddleware.d.ts.map