import { Context } from "../context"; import { MiddlewareNextFunction } from "../middlewareTypes"; export declare function renderErrorsAsJSON(ctx: Context, next: MiddlewareNextFunction): Promise;