/** Evidence package verification (spec/evidence-package.md, "Verification"). */ import { type SemanticSummary } from './checks.js'; import { type VerificationResult } from './result.js'; export declare const FORMAT = "grantex-evidence-package"; export declare const SUPPORTED_VERSIONS: readonly string[]; export interface VerifyOptions { /** The package root obtained independently of the package. Required. */ expectedRoot: string | null | undefined; /** The anchor audit entry hash obtained independently (optional). */ expectedAnchorHash?: string; requireAnchor?: boolean; /** JSON Web Key Set used to verify the service signature. */ jwks?: unknown; requireSignature?: boolean; /** Accept a signed package without checking the signature. */ allowUnverifiedSignature?: boolean; maxBytes?: number; } /** Run every check that needs only the document (no trust inputs). */ export declare function checkDocument(pkg: unknown): SemanticSummary; /** * Verify evidence package bytes against a trusted root. Fails closed: `ok` * only if every check passes; otherwise the result names the first failed * check and where. A matching root and anchor prove internal consistency; * only a verified service signature (`jwks`) proves the auth service exported * the package. A string is taken as the package's UTF-8 text. */ export declare function verifyPackage(data: Uint8Array | string, options: VerifyOptions): VerificationResult; //# sourceMappingURL=verify.d.ts.map