import type { Context } from 'hono'; export declare function routeErrorMiddleware(): import("hono").MiddlewareHandler; export declare function registerGatewayOnError(app: { onError: (handler: (err: Error, c: Context) => Response | Promise) => void; }): void;