// Copyright 2017 - 2026 will Farrell, Luciano Mammino, and Middy contributors. // SPDX-License-Identifier: MIT import type middy from "@middy/core"; import type { ALBEvent, APIGatewayEvent, APIGatewayProxyEventV2, } from "aws-lambda"; export interface Options { reviver?: (key: string, value: unknown) => unknown; disableContentTypeCheck?: boolean; disableContentTypeError?: boolean; } export type RequestEvent = APIGatewayEvent | APIGatewayProxyEventV2 | ALBEvent; declare function jsonBodyParser( options?: Options, ): middy.MiddlewareObj; export declare function httpJsonBodyParserValidateOptions( options?: Record, ): void; export default jsonBodyParser;