import { Next } from 'koa'; import { Context } from '../../context'; /** * Catches all errors and returns the message in the body. */ export declare function errorMiddleware(ctx: Context, next: Next): Promise;