import { FastifyReply } from "fastify"; export type ResponseBuilder = { statusCode: number; message: string; data?: any; }; export default function buildResponse(statusCode: number, message: string, data?: any): ResponseBuilder; /** * Sets the real HTTP response status to match the response body's `statusCode` * before returning it. Auth endpoints rely on the actual HTTP status (401/403/etc.) * being correct, not just the JSON body field, since API consumers and browsers * commonly branch on `response.status` directly for authentication flows. */ export declare function sendResponse(reply: FastifyReply, response: ResponseBuilder): ResponseBuilder;