/**
 * PreCompact (+ gated Stop) hook handler.
 *
 * Fires when Claude Code is about to compact the context window (PreCompact) —
 * the last safe moment to capture in-flight work before it is summarized away.
 * The handler auto-writes a work-handoff doc + `.diff` via the SAME
 * {@link buildWorkHandoff} builder the `specweave handoff` CLI uses, so an
 * auto-generated handoff is byte-compatible with a manual one (AC-US7-03).
 *
 * Design contract (AC-US7-01..04):
 * - Cheap at context exhaustion: the agent passes only ~5 short string fields
 *   (reason, summary, next, gotcha, decision) via the hook stdin JSON; all the
 *   expensive deterministic assembly + the free diff dump happen in the builder.
 * - Failure-tolerant: a handoff failure must NEVER break compaction. Everything
 *   is wrapped so the handler always returns the safe `{ continue: true }` shape.
 * - The Stop variant (`exports.handleStop`) is GATED on an auto/handoff session
 *   flag (`.specweave/state/auto-mode.json`): PreCompact always writes; Stop only
 *   writes under an active auto session, so ordinary turn-ends stay quiet
 *   (AC-US7-02).
 *
 * @module core/hooks/handlers/pre-compact
 */
import type { HandlerFn } from './types.js';
/**
 * PreCompact handler — always writes a handoff, never blocks compaction.
 */
export declare const handle: HandlerFn;
/**
 * Stop handler — gated on an active auto/handoff session. Fires only when
 * `auto-mode.json` is present so ordinary turn-ends are not noisy (AC-US7-02).
 */
export declare const handleStop: HandlerFn;
//# sourceMappingURL=pre-compact.d.ts.map