import { ToolSet } from 'ai'; import { J as Jwk } from './jwk-BoWfRJfF.cjs'; import { CryptoKey } from 'jose'; import 'zod'; type Ap2ToolName = "verify_closed_checkout_mandate" | "verify_closed_payment_mandate" | "verify_dsd_jwt_chain" | "build_checkout_receipt" | "build_payment_receipt" | "compute_checkout_hash" | "inspect_mandate"; interface Ap2ToolsOptions { /** Public JWK of the agent that signs closed mandates. */ agentPublicJwk?: Jwk; /** Public JWK of the merchant — used to verify the inner `checkout_jwt`. */ merchantPublicJwk?: Jwk; /** Public JWK of the root issuer (for chain verification). */ rootIssuerPublicJwk?: Jwk; /** Merchant's private key — used to sign CheckoutReceipts. */ merchantPrivateKey?: CryptoKey; /** MPP's private key — used to sign PaymentReceipts. */ mppPrivateKey?: CryptoKey; /** Default issuer string for receipts (`iss` claim). */ defaultIssuer?: string; /** Override agent-facing tool descriptions. */ descriptions?: Partial>; } declare function ap2Tools(options?: Ap2ToolsOptions): ToolSet; export { Jwk as Ap2Jwk, type Ap2ToolName, type Ap2ToolsOptions, Jwk, ap2Tools };