/** * Scoped projection-recompute (ADR-011 multi-device conflict policy, * FEAT-407 pull merge slice). * * Only atom_ids that received a NEW remote event during a pull round need * their projection recomputed — atoms with no incoming remote event keep * the existing single-device fast path in memory-events.ts, unchanged * (ADR-011 "Implications for FEAT-407" point 3). This module is that * recompute function: a deterministic, order-independent reduce over the * FULL local event set for one atom_id, implementing conflict classes * A (concurrent-edit), B (edit-vs-supersede), C (edit-vs-erase). * * Deterministic tie-break key everywhere below: (created_at, event_id) — * created_at first, event_id (immutable, globally-unique) breaks ties. No * device is structurally favored (ADR-011). */ import type { DB } from '../storage/db.js'; /** * Recompute the materialized `memories` projection for one atom_id from its * full local event set (local ∪ pulled-remote, already deduped by * event_id). Order-independent: computed as a set-wise reduce, not a * fold-in-arrival-order apply, so calling this any number of times, in any * order relative to sibling atoms, converges to the same result (ADR-011 * convergence property). */ export declare function recomputeProjection(db: DB, atomId: string): void;