/**
 * 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 { OnErrorPayload } from '../types.js';
/**
 * Handle onError - capture operation errors to BRAIN
 *
 * Includes infinite-loop guard: if the payload has _fromHook marker,
 * the handler skips to prevent onError -> observeBrain -> onError loops.
 * Additionally, ALL observeBrain errors are silently suppressed to prevent
 * re-entrant hook firing.
 */
export declare function handleError(projectRoot: string, payload: OnErrorPayload): Promise<void>;
//# sourceMappingURL=error-hooks.d.ts.map