import type { Context } from 'hono';
import type { HonoNodeBindings } from '../../../mcp-server/transports/http/httpTypes.js';
/**
 * A centralized error handling middleware for Hono.
 * This function is registered with `app.onError()` and will catch any errors
 * thrown from preceding middleware or route handlers.
 *
 * Generic to support different binding types (Node.js, Cloudflare Workers, etc).
 *
 * @template TBindings - The Hono binding type (defaults to HonoNodeBindings)
 * @param err - The error that was thrown.
 * @param c - The Hono context object for the request.
 * @returns A Response object containing the formatted JSON-RPC error.
 */
export declare const httpErrorHandler: <TBindings extends object = HonoNodeBindings>(err: Error, c: Context<{
    Bindings: TBindings;
}>) => Promise<Response>;
//# sourceMappingURL=httpErrorHandler.d.ts.map