import type { ServerResponse } from 'node:http'; import type { FastifyInstance } from 'fastify'; export declare function registerErrorHandler(fastify: FastifyInstance): void; export declare function routePath(rawUrl: string | undefined): string; export declare function queryParam(rawUrl: string | undefined, key: string): string | undefined; export declare function sendJsonRaw(response: ServerResponse, statusCode: number, body: object): void; export declare function stringBodyField(body: Record, key: string): string | undefined; export declare function requiredBodyString(body: Record, key: string): string; export declare function optionalString(value: unknown): string | undefined; export declare function stringValue(value: unknown, key: string): string; export declare class HttpError extends Error { readonly statusCode: number; constructor(statusCode: number, message: string); } //# sourceMappingURL=http.d.ts.map