/**
 * `olam skills migrate-hooks` — forward strip of atlas-toolbox-shipped
 * olam-meta hook entries (Phase C C2).
 *
 *   olam skills migrate-hooks [--dry-run]
 *
 * Detects PreToolUse/PostToolUse matcher entries in ~/.claude/settings.json
 * whose `command` strings reference one of the agentmemory-classifier
 * scripts AND do NOT carry an olam-meta sentinel — i.e. atlas-toolbox-
 * shipped entries from the pre-Phase-B world. Strips them; writes a
 * pre-strip snapshot via the B5 primitive so the operator can undo via
 * `olam skills migrate-hooks-back`.
 *
 * Order of operations (snapshot first, mutation after, audit-log last):
 *   1. acquire settings-json lock (A4 — serializes against concurrent sync)
 *   2. read settings.json (return early if absent — nothing to strip)
 *   3. findStripCandidates(settings)
 *      - empty list → no-op + summary + exit 0
 *   4. --dry-run → print summary + exit 0 (no snapshot, no mutation)
 *   5. writeMetaHooksSnapshot(settings) — same prefix as B5, so
 *      `migrate-hooks-back` consumes it identically
 *   6. applyStrip(settings, candidates) → next settings.json
 *   7. atomic write via temp+rename
 *   8. appendTrustAudit({action: 'meta-hook-stripped', count, ...})
 *      — operator-visible append-only audit trail
 *   9. print summary
 *
 * Idempotent: re-running on already-stripped settings.json is a no-op
 * (findStripCandidates returns []).
 *
 * Reversibility: forward-fix-only. Audit-log entry is append-only by
 * contract; settings.json mutation is reversible via B5 snapshot.
 */
import type { Command } from 'commander';
import { AGENTMEMORY_SCRIPT_PATTERNS, OLAM_META_SENTINELS_GUARDED, findStripCandidates, applyStrip, type StripCandidate } from '@olam/core/src/skill-sync/atlas-hook-strip.js';
/** Stable command name — referenced by tests. */
export declare const MIGRATE_HOOKS_COMMAND = "migrate-hooks";
export { AGENTMEMORY_SCRIPT_PATTERNS, OLAM_META_SENTINELS_GUARDED, findStripCandidates, applyStrip, type StripCandidate, };
export declare function registerSkillsMigrateHooks(program: Command): void;
//# sourceMappingURL=skills-migrate-hooks.d.ts.map