/** * Standalone x402 utils: base64, createNonce, client lookup (no @x402/* deps). */ import type { PaymentRequirements } from "./types.js"; export declare const Base64EncodedRegex: RegExp; export declare function safeBase64Encode(data: string): string; export declare function safeBase64Decode(data: string): string; export declare function findSchemesByNetwork(map: Map>, network: string): Map | undefined; export declare function findByNetworkAndScheme(map: Map>, scheme: string, network: string): T | undefined; export declare function createNonce(): `0x${string}`; export declare const CHAIN_ID_GATELAYER_TESTNET = 10087; export declare const CHAIN_ID_GATELAYER = 10088; export declare const CHAIN_ID_ETH = 1; export declare const CHAIN_ID_BASE = 8453; export declare const CHAIN_ID_POLYGON = 137; export declare const CHAIN_ID_ARBEVM = 42161; export declare function getEvmChainIdFromNetwork(network: string): number; export declare function normalizePaymentRequirements(accepts: PaymentRequirements[]): PaymentRequirements[]; export interface Eip712TypeField { name: string; type: string; } export interface Eip712TypedData { domain: Record; types: Record; primaryType: string; message: Record; } /** * Build the EIP-712 digest: keccak256("\x19\x01" || domainSeparator || structHash). * Useful when caller needs raw digest for signDigest-style signers. */ export declare function buildEip712TypedDataDigest(typedData: Eip712TypedData): `0x${string}`; //# sourceMappingURL=utils.d.ts.map