/** * Anchor proof persistence, stored ALONGSIDE the ndjson ledger so a verifier * can find both together: * ~/.agentguard//anchor.ots latest raw calendar proof bytes (binary) * ~/.agentguard//anchor.json small append-only index of AnchorProof * * The index is what `agentguard verify` reads to report external timestamping. * * Patent notice: Protected by U.S. patent-pending technology * (App. Nos. 63/983,615; 63/983,621; 63/983,843; 63/984,626; * 64/071,781; 64/071,789). */ import type { AnchorProof } from './types'; export declare function defaultHome(): string; export declare function anchorDir(tenant: string, home?: string): string; export declare function anchorIndexPath(tenant: string, home?: string): string; export declare function anchorProofPath(tenant: string, home?: string): string; /** Append a proof to the tenant index and write its raw bytes to anchor.ots. */ export declare function writeAnchorProof(tenant: string, proof: AnchorProof, home?: string): void; /** Overwrite the tenant index with `proofs` and refresh the raw .ots sidecar * from the most recent proof. Used by `anchor --upgrade` to update proofs in * place (idempotent) rather than appending duplicates. */ export declare function replaceAnchorIndex(tenant: string, proofs: AnchorProof[], home?: string): void; export declare function readAnchorIndex(tenant: string, home?: string): AnchorProof[]; /** Read an anchor index directly from a path (used by verify beside a trace). */ export declare function readAnchorIndexAt(indexPath: string): AnchorProof[]; /** The most recent proof recorded for a given head hash, if any. */ export declare function findAnchorForHead(proofs: AnchorProof[], headHashHex: string): AnchorProof | null; //# sourceMappingURL=store.d.ts.map