import { N as Network } from '../x402Client-DYQEW6Y8.js'; /** * Converts a JavaScript number to a plain decimal string, expanding scientific notation * via string manipulation rather than parseFloat round-tripping. * * e.g. 1e-7 → "0.0000001", 4.02 → "4.02" * * @param n - The number to convert * @returns A plain decimal string representation with no scientific notation */ declare function numberToDecimalString(n: number): string; /** * Parses a money string into a finite, non-negative decimal number. * Accepts plain decimal strings with an optional leading dollar sign. * * @param money - The money string to parse * @returns Decimal number */ declare function parseMoneyString(money: string): number; /** * Convert a decimal amount to token smallest units. * Accepts only plain decimal strings — scientific notation is not allowed. * Throws if the amount is non-zero but too small to represent with the given decimal precision. * * @param decimalAmount - The decimal amount as a plain string (e.g., "0.10") * @param decimals - The number of decimals for the token (e.g., 6 for USDC) * @returns The amount in smallest units as a string */ declare function convertToTokenAmount(decimalAmount: string, decimals: number): string; /** * Scheme data structure for facilitator storage */ interface SchemeData { facilitator: T; networks: Set; pattern: Network; } declare const networkMatchesPattern: (pattern: Network, network: Network) => boolean; declare const findSchemesByNetwork: (map: Map>, network: Network) => Map | undefined; declare const findByNetworkAndScheme: (map: Map>, scheme: string, network: Network) => T | undefined; /** * Finds a facilitator by scheme and network using pattern matching. * Works with new SchemeData storage structure. * * @param schemeMap - Map of scheme names to SchemeData * @param scheme - The scheme to find * @param network - The network to match against * @returns The facilitator if found, undefined otherwise */ declare const findFacilitatorBySchemeAndNetwork: (schemeMap: Map>, scheme: string, network: Network) => T | undefined; declare const Base64EncodedRegex: RegExp; /** * Encodes a string to base64 format * * @param data - The string to be encoded to base64 * @returns The base64 encoded string */ declare function safeBase64Encode(data: string): string; /** * Decodes a base64 string back to its original format * * @param data - The base64 encoded string to be decoded * @returns The decoded string in UTF-8 format */ declare function safeBase64Decode(data: string): string; /** * Deep equality comparison for payment requirements * Uses a normalized JSON.stringify for consistent comparison * * @param obj1 - First object to compare * @param obj2 - Second object to compare * @returns True if objects are deeply equal */ declare function deepEqual(obj1: unknown, obj2: unknown): boolean; export { Base64EncodedRegex, type SchemeData, convertToTokenAmount, deepEqual, findByNetworkAndScheme, findFacilitatorBySchemeAndNetwork, findSchemesByNetwork, networkMatchesPattern, numberToDecimalString, parseMoneyString, safeBase64Decode, safeBase64Encode };