import type { KeyObject } from "node:crypto"; import { type ChainLink } from "./serialize.js"; /** A link's header and payload, UNVERIFIED — for routing (which key, which hash), never a decision. */ export declare function peekLink(link: ChainLink): { header: Record; payload: Record; } | undefined; /** * The `sd_hash` binding a hop to the link before it: the digest of that link's exact * serialization, disclosures included (§5.1.4). Hashed with the previous link's own `_sd_alg`, * sha-256 when it names none — the AP2 Python SDK's rule, so the two compute the same bytes. */ export declare function bindingHash(prev: ChainLink): string; /** * Append the agent's hop to a chain. `audience` and `nonce` are the MERCHANT's: they are what * keep this purchase from being replayed at another store or a second time at this one. */ export declare function appendAgentHop(args: { chain: string; agentKey: KeyObject; /** The closed mandate this purchase is. A content carrying `cnf` delegates further. */ content: Record; audience: string; nonce: string; }): Promise;