import type { Middleware } from "./middleware"; declare function jsonResponse(data: unknown, init?: ResponseInit): Response; declare function createdResponse(data: unknown, init?: ResponseInit): Response; declare function noContentResponse(): Response; declare function errorResponse(error: unknown): Response; declare function withErrorHandling(handler: (...args: TArgs) => Response | Promise): (...args: TArgs) => Promise; declare function withJsonErrorHandling(handler: (...args: TArgs) => Response | Promise): (...args: TArgs) => Promise; declare function createJsonErrorMiddleware(): Middleware; export { createdResponse, createJsonErrorMiddleware, errorResponse, jsonResponse, noContentResponse, withErrorHandling, withJsonErrorHandling, };