import type { WrapCtx, ToolHandler } from '../../types/errors/structured-error.js';
export declare function withErrorContract(handler: ToolHandler, ctx: WrapCtx): ToolHandler;
//# sourceMappingURL=middleware.d.ts.map