type Json = Record; /** * How identifiers and content digests appear in a package. Every class not in * `disclosed` (`approver`, `content`, `principal`, `record`, `subject`) is keyed * per case with `key` (at least 32 bytes, never written to the package; `keyId` * names it). Disclosing every class needs no key and produces scheme `none`. */ export interface PrivacySettings { key?: Uint8Array; keyId?: string; disclosed?: readonly string[]; } export interface BuiltPackage { document: Json; data: Uint8Array; root: string; } export interface EvidenceRecord { type: string; at: string; data: Json; source: { authority: 'platform' | 'tenant'; recorded_at: string; audit_entry_id?: string; audit_hash?: string; late?: true; }; ext?: Json; } /** The canonical bytes of a package document. */ export declare function serializePackage(document: Json): Uint8Array; /** * Build a package from a case header and entry records. Values are given in the * clear (decisions carry the token's `action_hash`) and keyed here according to * `privacy`. The result is checked with the verification rules, so an invalid * package is refused with `EvidenceBuildError`. */ export declare function buildPackage(input: { case: Json; entries: readonly EvidenceRecord[] | readonly Json[]; privacy: PrivacySettings; }): BuiltPackage; /** * The platform audit entry that records a package's root. Its agent, DID and * grant are empty, its principal is `platform` and its metadata carries the * platform marker, none of which a tenant can write through `/v1/audit/log`. */ export declare function anchorAuditEntry(document: Json, options: { auditEntryId: string; timestamp: string; prevHash: string | null; }): Json; /** A copy of `document` with `anchor` set; the root is unchanged. */ export declare function attachAnchor(document: Json, auditEntry: Json): Json; /** A copy of `document` with `signature` set; the root is unchanged. */ export declare function attachSignature(document: Json, signature: Json | { alg: string; jws: string; kid: string; }): Json; export {}; //# sourceMappingURL=build.d.ts.map