/** * Error Hook Handlers - Wave 2 of T5237 * * Captures operation errors to BRAIN via memory.observe. * Includes infinite-loop guard to prevent onError triggering onError. * Auto-registers on module load. */ import type { PostToolUseFailurePayload } from '../types.js'; /** * Handle PostToolUseFailure — capture operation errors to BRAIN. * * Includes an infinite-loop guard: if the payload carries a `_fromHook` * metadata marker the handler skips immediately to prevent the cycle * `PostToolUseFailure → observeBrain → PostToolUseFailure`. All * `observeBrain` errors are also silently suppressed for the same reason. * * Never throws. All brain-write errors are swallowed so error hooks * never block the original error path. * * @param projectRoot - Absolute path to the project root directory. * @param payload - PostToolUseFailure event payload. * * @task T166 * @epic T134 */ export declare function handleError(projectRoot: string, payload: PostToolUseFailurePayload): Promise; //# sourceMappingURL=error-hooks.d.ts.map