import type { HttpMiddleware } from "@egomobile/http-server"; import type { Nilable } from "../types/internal.js"; import type { IBodyParserMiddlewareOptions } from "./index.js"; /** * Options for `buffer()` function. */ export interface IBufferOptions extends IBodyParserMiddlewareOptions { } /** * Creates a new middleware, which reads input data as `Buffer` * and writes this data to `body` property of the current request context. * * @param {Nilable} [options] Custom options. * * @returns {HttpMiddleware} The new middleware. */ export declare function buffer(options?: Nilable): HttpMiddleware;