import { JWTHeaderParameters, JWTPayload } from 'jose'; import { VerificationResult, VerifyOptions } from './types'; export type VerifyDeps = { importSPKI: (pem: string, alg: string) => Promise; jwtVerify: (token: string, key: CryptoKey | Uint8Array, options: { algorithms: string[]; typ?: string; }) => Promise<{ payload: JWTPayload; protectedHeader: JWTHeaderParameters; }>; }; /** * Verify a JWS token against a public key and bundle stream. * * 1. Imports the public key from PEM * 2. Verifies the JWS signature * 3. Re-hashes the bundle and compares to the payload's bundleSha256 */ export declare function verifyBundle(options: VerifyOptions, deps?: VerifyDeps): Promise;