/** * Reversibility + audit for skill applies (ADR 0001, Phase 2). * * Operates on the global install store (`~/.enterprise-skills`): the * tool-managed `skills/` tree + `registry/canonical-skills.yaml` manifest that * `installBundle` writes. Every function takes an explicit `root` so it is * testable against a temp directory. Best-effort and non-throwing — a snapshot * or audit failure must never abort an apply. */ /** * Snapshot the current store into `/.update-restore//` so an * apply can be rolled back. Returns the restore dir, or null when there is * nothing to snapshot. */ export declare function snapshotStore(root: string): string | null; /** The newest valid restore directory, or null. */ export declare function latestRestore(root: string): string | null; export interface RollbackResult { restored: boolean; from?: string; } /** Restore the most recent snapshot's skills + manifest back into the store. */ export declare function rollbackStore(root: string): RollbackResult; export interface UpdateAuditEntry { at: string; action: "auto-apply" | "manual-apply" | "rollback"; actor: "auto" | "user"; skills?: { skill_id: string; from: string; to: string; }[]; restore_point?: string | null; note?: string; } /** Append an audit line to `/.update-audit.jsonl`. Never throws. */ export declare function appendUpdateAudit(root: string, entry: UpdateAuditEntry): void; //# sourceMappingURL=update-store.d.ts.map