/** * D10 retention for effect records. A purge replaces each record's envelope * with a signed tombstone that keeps the effect ID, kind, payload digest, chain * position, links and subject digest, and names the original record hash and * keyid, so the chain still verifies. Target, context and outcome bodies are * dropped. The effect-ID index is never deleted, so a purged ID cannot be * replayed as new. * * @see docs/contracts/effect-ledger.v1.md "Retention and tombstones" */ import { type DecisionLifecyclePolicy } from '../decision/lifecycle.js'; import { type EffectLedger } from './ledger.js'; /** Ledger records bind the D10 `receipt` surface until a dedicated surface exists. */ export declare const EFFECT_RETENTION_POLICY: "decision-lifecycle/v1#receipt"; export interface PurgeEffectOptions { lifecycle: DecisionLifecyclePolicy; /** A D10 legal hold on this effect blocks purge. */ legalHold?: boolean; } export interface PurgeEffectResult { effectId: string; tombstoned: number; alreadyTombstoned: number; retentionPolicy: typeof EFFECT_RETENTION_POLICY; } /** * Purge one effect's records to tombstones. Refused while a legal hold applies, * before the D10 receipt retention has elapsed, and while the intent has no * definitive outcome (completed, failed, or a present/absent reconcile). */ export declare function purgeEffect(ledger: EffectLedger, id: string, options: PurgeEffectOptions): Promise; //# sourceMappingURL=lifecycle.d.ts.map