import type { VerificationSource } from '../verification-source/types.js'; import type { ProducerAttestationCommitment, CpaProducerAttestationRef, ProducerAttestationValidation } from './types.js'; export type { ProducerAttestationCommitment, CpaProducerAttestationRef, ProducerAttestationValidation, } from './types.js'; /** * Structural validation for the receipt-side commitment. Fail closed: * a commitment of this kind without a format label, or whose hash is not * 64 lowercase hex, is invalid rather than loosely accepted. */ export declare function validateProducerAttestationCommitment(c: ProducerAttestationCommitment): ProducerAttestationValidation; /** * Create a producer-attestation commitment from the attestation bytes. * Composes the existing createEvidenceCommitment (same hash semantics as * every other commitment kind) and adds the attestation fields by * conditional spread, so omitted options introduce no keys. */ export declare function createProducerAttestationCommitment(opts: { /** The attestation bytes as transmitted (e.g. the EAT JWT string). */ attestation: string; /** Format identifier, open set: 'eat+jwt', 'tee-quote', a vendor label. */ format: string; locatorUri?: string; bindingNote?: string; issuerKid?: string; jwks?: string; /** How the committing party obtained any key it used when it looked at * the attestation, if it recorded that (src/v2/verification-source). */ verificationSource?: VerificationSource; }): ProducerAttestationCommitment; /** * Check an attestation against its commitment: structural validity plus * hash binding (recompute sha256 over the supplied bytes, compare). The * hash compare delegates to the existing verifyEvidenceCommitment. A pass * binds bytes to commitment; it says nothing about what the attestation * asserts or whether it is trustworthy. */ export declare function verifyProducerAttestationCommitment(commitment: ProducerAttestationCommitment, attestation: string): ProducerAttestationValidation; /** * Structural validation for the CPA-side reference. Same rules as the * receipt-side commitment, in the CPA's snake_case field style. */ export declare function validateCpaProducerAttestationRef(ref: CpaProducerAttestationRef): ProducerAttestationValidation; /** * Build a CPA-side reference from the attestation bytes (or a precomputed * hash). Conditional spread keeps omitted options keyless, which is what * keeps a slot-free CPA byte-identical under strict JCS. */ export declare function buildCpaProducerAttestationRef(input: { /** The attestation bytes; the hash is computed here. Exactly one of * attestation / content_hash must be supplied. */ attestation?: string; /** Precomputed sha256 lowercase hex of the attestation bytes. */ content_hash?: string; format: string; locator_uri?: string; binding_note?: string; }): CpaProducerAttestationRef; //# sourceMappingURL=index.d.ts.map