import { ApiInterface, ExegesisOptions, ExegesisRunner, ResponseValidationCallback } from '../types'; import PluginsManager from './PluginsManager'; import { handleErrorFunction } from "../types/options"; /** * Returns a `(req, res) => Promise` function, which handles incoming * HTTP requests. The returned function will return true if the request was * handled, and false otherwise. * * @returns runner function. */ export default function generateExegesisRunner(api: ApiInterface, options: { autoHandleHttpErrors: boolean | handleErrorFunction; plugins: PluginsManager; onResponseValidationError: ResponseValidationCallback; validateDefaultResponses: boolean; originalOptions: ExegesisOptions; }): Promise;