import type { IHasher } from './ports/hasher.port'; import type { ICoseVerifier } from './ports/cose-verifier.port'; import type { TransparencyLedgerEntry } from './transparency-statement'; export declare const VDS_RFC9162_SHA256 = 1; export type ReceiptFailureCode = 'INDEX_NOT_CONTIGUOUS' | 'TREE_SIZE_MISMATCH' | 'UNSUPPORTED_VDS' | 'STATEMENT_PAYLOAD_MISMATCH' | 'STATEMENT_SIGNATURE_INVALID' | 'RECEIPT_SIGNATURE_INVALID' | 'INCLUSION_PROOF_INVALID' | 'ROOT_MISMATCH' | 'MALFORMED_ENTRY'; export interface ReceiptFailure { readonly code: ReceiptFailureCode; readonly leafIndex?: number; readonly statementId?: string; readonly message: string; } export interface EntryVerification { readonly leafIndex: number; readonly statementId: string; readonly verified: boolean; readonly failures: readonly ReceiptFailure[]; } export interface ReceiptChainVerification { readonly verified: boolean; readonly entryCount: number; readonly entries: readonly EntryVerification[]; readonly failures: readonly ReceiptFailure[]; readonly recomputedRoot?: string; } export declare function verifyReceiptChain(ledger: readonly TransparencyLedgerEntry[], deps: { readonly hasher: IHasher; readonly verifier: ICoseVerifier; }): ReceiptChainVerification;