import { type DecisionLifecyclePolicy, type DecisionLifecycleReference, type DecisionLifecycleRule } from '../lifecycle.js'; /** Opaque by design: callers learn only that stored bytes failed verification. */ export declare class BatchStoreIntegrityError extends Error { constructor(); } /** Erased, expired, or tombstoned durable state. Replay must neither re-dispatch nor serve it. */ export declare class BatchRecordUnavailableError extends Error { readonly code: "batch-record-unavailable"; constructor(); } /** Unkeyed records from before integrity protection. They are read-only until explicitly migrated. */ export declare class BatchStoreMigrationRequiredError extends Error { readonly code: "batch-store-migration-required"; constructor(); } /** D10 binding shared by the durable batch stores. Both stores use the `receipt` surface rule. */ export interface BatchStoreLifecycleBinding { lifecycle: DecisionLifecyclePolicy; clock?: () => number; } export interface BatchStoreRestoreReport { restored: number; refused: number; } export { exists, keyedName, macFor, macMatches, publishExclusive, requireIntegrityKey, serialized, syncDirectory, } from '../../storage/protected-files.js'; export declare function receiptLifecycleRule(binding: BatchStoreLifecycleBinding | undefined): DecisionLifecycleRule; /** Stored bytes must be exactly the canonical serialization, so no byte can change unnoticed. */ export declare function parseCanonical(raw: string): unknown; export declare function ensurePrivateDirectory(directory: string, message: string): Promise; /** Body-free local tombstone. Its presence alone blocks reads, writes, acquisition and restore. */ export declare function writeTombstone(directory: string, path: string, reference: DecisionLifecycleReference, deletedAt: number): Promise; export declare function expired(createdAtEpochMs: number, now: number, rule: DecisionLifecycleRule): boolean; //# sourceMappingURL=protection.d.ts.map