/** Verification codes, results and errors for evidence packages. */ export declare const VerificationCode: { readonly MISSING_ROOT: 'missing_root'; readonly TOO_LARGE: 'too_large'; readonly MALFORMED_JSON: 'malformed_json'; readonly DUPLICATE_KEY: 'duplicate_key'; readonly NON_CANONICAL_NUMBER: 'non_canonical_number'; readonly NON_CANONICAL_DOCUMENT: 'non_canonical_document'; readonly UNSUPPORTED_FORMAT: 'unsupported_format'; readonly UNSUPPORTED_VERSION: 'unsupported_version'; readonly SCHEMA_VIOLATION: 'schema_violation'; readonly PRIVACY_VIOLATION: 'privacy_violation'; readonly GENESIS_MISMATCH: 'genesis_mismatch'; readonly SEQUENCE_MISMATCH: 'sequence_mismatch'; readonly LINK_MISMATCH: 'link_mismatch'; readonly ENTRY_HASH_MISMATCH: 'entry_hash_mismatch'; readonly HEAD_MISMATCH: 'head_mismatch'; readonly LENGTH_MISMATCH: 'length_mismatch'; readonly ROOT_MISMATCH: 'root_mismatch'; readonly GRANT_CHAIN_BROKEN: 'grant_chain_broken'; readonly ENTRIES_OUT_OF_ORDER: 'entries_out_of_order'; readonly DUPLICATE_IDENTIFIER: 'duplicate_identifier'; readonly DANGLING_REFERENCE: 'dangling_reference'; readonly CASE_MISMATCH: 'case_mismatch'; readonly ACTION_HASH_MISMATCH: 'action_hash_mismatch'; readonly DECISION_INCONSISTENT: 'decision_inconsistent'; readonly VALIDITY_VIOLATION: 'validity_violation'; readonly AUTHORITY_VIOLATION: 'authority_violation'; readonly TOOL_CALL_INCONSISTENT: 'tool_call_inconsistent'; readonly ROOT_NOT_TRUSTED: 'root_not_trusted'; readonly ANCHOR_MISSING: 'anchor_missing'; readonly ANCHOR_HASH_MISMATCH: 'anchor_hash_mismatch'; readonly ANCHOR_MISMATCH: 'anchor_mismatch'; readonly ANCHOR_NOT_TRUSTED: 'anchor_not_trusted'; readonly SIGNATURE_MISSING: 'signature_missing'; readonly SIGNATURE_UNVERIFIED: 'signature_unverified'; readonly SIGNATURE_KEY_UNKNOWN: 'signature_key_unknown'; readonly SIGNATURE_INVALID: 'signature_invalid'; }; export type VerificationCodeValue = (typeof VerificationCode)[keyof typeof VerificationCode]; export interface FailureLocation { entryIndex?: number | null; fieldPath?: string | null; expected?: string | null; actual?: string | null; } /** The first failed check. Thrown internally, reported in the result. */ export declare class VerificationFailure extends Error { readonly code: VerificationCodeValue; readonly entryIndex: number | null; readonly fieldPath: string | null; readonly expected: string | null; readonly actual: string | null; constructor(code: VerificationCodeValue, message: string, location?: FailureLocation); } /** * Outcome of `verifyPackage`. `ok` is true only when every check passed; * otherwise `code` names the first check that failed and `entryIndex`, * `fieldPath`, `expected` and `actual` locate it where that is meaningful. */ export interface VerificationResult { ok: boolean; code: VerificationCodeValue | null; message: string; entryIndex: number | null; fieldPath: string | null; expected: string | null; actual: string | null; root: string | null; entryCount: number | null; /** `absent`, `internal-consistency-only`, `pinned` (matches a caller-supplied anchor hash) or `signed`. */ anchorStatus: 'absent' | 'internal-consistency-only' | 'pinned' | 'signed'; /** `absent`, `unchecked` or `verified`. Only a verified service signature proves who exported the package. */ signatureStatus: 'absent' | 'unchecked' | 'verified'; signatureKid: string | null; unsourcedInputs: number; lateEntries: number; tenantAssertedEntries: number; } /** JSON form of a result, identical to the Python SDK's `VerificationResult.to_dict()`. */ export declare function verificationResultToJson(result: VerificationResult): Record; /** A package could not be built from the given input. */ export declare class EvidenceBuildError extends Error { readonly code: string; readonly fieldPath: string | null; constructor(code: string, message: string, fieldPath?: string | null); } //# sourceMappingURL=result.d.ts.map