/**
 * Context Compaction Hook Handlers
 *
 * Captures PreCompact and PostCompact events to BRAIN so that agents
 * can later observe when context compactions occurred and what state
 * preceded them. This is especially useful for long sessions where
 * context is compacted multiple times.
 *
 * PreCompact saves a session context snapshot before compaction begins.
 * PostCompact records that compaction occurred and the resulting token counts.
 *
 * Gated behind brain.autoCapture config. Never throws — all errors are
 * swallowed so brain capture never blocks context compaction.
 *
 * Auto-registers on module load.
 *
 * @task T166
 * @epic T134
 */
import type { PostCompactPayload, PreCompactPayload } from '../types.js';
/**
 * Handle PreCompact — snapshot current session memory context to BRAIN.
 *
 * Fires immediately before context compaction begins. Records the token
 * count and compaction reason so the brain retains context about what
 * was in scope before compaction.
 *
 * Gated behind brain.autoCapture config. Never throws.
 *
 * @param projectRoot - Absolute path to the project root directory.
 * @param payload     - PreCompact event payload.
 *
 * @task T166
 * @epic T134
 */
export declare function handlePreCompact(projectRoot: string, payload: PreCompactPayload): Promise<void>;
/**
 * Handle PostCompact — record compaction completion to BRAIN.
 *
 * Fires immediately after context compaction completes. Records the
 * before/after token counts so agents can correlate observations made
 * before compaction with those made after.
 *
 * Gated behind brain.autoCapture config. Never throws.
 *
 * @param projectRoot - Absolute path to the project root directory.
 * @param payload     - PostCompact event payload.
 *
 * @task T166
 * @epic T134
 */
export declare function handlePostCompact(projectRoot: string, payload: PostCompactPayload): Promise<void>;
//# sourceMappingURL=context-hooks.d.ts.map