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