/**
 * resume-repair.ts
 *
 * Session resume repair pipeline for the compaction engine.
 *
 * When a session is resumed from a saved boundary commit, this pipeline
 * validates and repairs the compacted message list before it is handed
 * to the active conversation context. Repairs are non-destructive and
 * append-only — they never discard information without recording the
 * action in the repair log.
 *
 * Repair checks (in order):
 * 1. Empty message list                  → inject an empty-state handoff
 * 2. Missing user message at position 0  → prepend synthetic user message
 * 3. Context overflow (tokens > limit)   → truncate oldest messages
 * 4. Corrupt content blocks              → strip non-serialisable blocks
 */
import type { BoundaryCommit } from './types.js';
import type { ResumeRepairResult } from './types.js';
/**
 * Options for the resume repair pipeline.
 */
export interface ResumeRepairOptions {
    /** The boundary commit being resumed. */
    commit: BoundaryCommit;
    /** Maximum tokens allowed in the resumed session (default: RESUME_MAX_TOKENS). */
    maxTokens?: number;
}
/**
 * Runs the session resume repair pipeline on a boundary commit.
 *
 * Each check is run in sequence. If a repair is applied, the message list
 * is updated in place for the next check. All repairs are recorded with
 * their severity and description.
 *
 * @param options - Repair options.
 * @returns A ResumeRepairResult with the (possibly repaired) messages and repair log.
 */
export declare function runResumeRepair(options: ResumeRepairOptions): ResumeRepairResult;
//# sourceMappingURL=resume-repair.d.ts.map