import type { IncomingMessage } from "node:http"; import { Effect } from "effect"; export declare const NO_BODY: unique symbol; export declare const MAX_REQUEST_BODY_BYTES: number; export declare class RequestBodyTooLargeError extends Error { } /** * Read and parse a JSON request body. On malformed JSON or an oversized body, * write the matching error through `writeError` and return the NO_BODY sentinel * so the caller stops processing. */ export declare function readJson(req: IncomingMessage, writeError: (status: number, value: unknown) => void): Effect.Effect;