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