import type { ThirdwebClient } from "../client/client.js"; import type { AsyncStorage } from "../utils/storage/AsyncStorage.js"; import type { Account } from "../wallets/interfaces/wallet.js"; import { type RequestedPaymentRequirements } from "./schemas.js"; /** * x402 v2 payload fields echoed back to the server. */ type PaymentPayloadV2Context = { /** The selected payment requirement exactly as sent by the server */ accepted: Record; /** The resource being paid for */ resource?: Record; }; /** * Creates and encodes a payment header for the given client and payment requirements. * * @param client - The signer wallet instance used to create the payment header * @param x402Version - The version of the X402 protocol to use * @param paymentRequirements - The payment requirements containing scheme and network information * @param storage - Optional storage for caching permit signatures (for "upto" scheme) * @param v2Context - The x402 v2 fields to include in the payload * @param maxValue - The maximum allowed payment amount * @returns A promise that resolves to the encoded payment header string */ export declare function createPaymentHeader(client: ThirdwebClient, account: Account, paymentRequirements: RequestedPaymentRequirements, x402Version: number, storage?: AsyncStorage, v2Context?: PaymentPayloadV2Context, maxValue?: bigint): Promise; export {}; //# sourceMappingURL=sign.d.ts.map