export interface ReferenceClaims { /** The external verifier's opaque handle for this presentation session. */ reference: string; /** The order this reference was minted for — re-checked at redeem (invariant 4). */ orderId: string; } /** Seal `{ reference, orderId }` with an expiry. The result is safe to hand to the * browser: it is tamper-evident and only redeemable for `orderId`. */ export declare function sealReference(claims: ReferenceClaims, secret: string, ttlMs?: number): string; /** * Open a sealed reference and REQUIRE it to be the one minted for `orderId`. * * Throws on a malformed token, a bad signature, an expired window, or an order-id * mismatch. Every failure is a refusal — there is no partial trust, and the payload * is only parsed AFTER the signature verifies (never interpret unverified input). */ export declare function openReference(token: string, orderId: string, secret: string): ReferenceClaims;