import { SchemeNetworkServer, MoneyParser, Price, Network, AssetAmount, PaymentRequirements } from '@bankofai/x402-core/types'; /** * Aptos server implementation for the Exact payment scheme. */ declare class ExactAptosScheme implements SchemeNetworkServer { readonly scheme = "exact"; private moneyParsers; /** * Register a custom money parser in the parser chain. * * @param parser - Custom function to convert amount to AssetAmount (or null to skip) * @returns The service instance for chaining */ registerMoneyParser(parser: MoneyParser): ExactAptosScheme; /** * Parses a price into an asset amount. * * @param price - The price to parse * @param network - The network to use * @returns Promise that resolves to the parsed asset amount */ parsePrice(price: Price, network: Network): Promise; /** * Build payment requirements for this scheme/network combination * * @param paymentRequirements - The base payment requirements * @param supportedKind - The supported kind configuration * @param supportedKind.x402Version - The x402 protocol version * @param supportedKind.scheme - The payment scheme * @param supportedKind.network - The network identifier * @param supportedKind.extra - Extra metadata including feePayer address * @param extensionKeys - Extension keys supported by the facilitator * @returns Enhanced payment requirements with feePayer in extra */ enhancePaymentRequirements(paymentRequirements: PaymentRequirements, supportedKind: { x402Version: number; scheme: string; network: Network; extra?: Record; }, extensionKeys: string[]): Promise; /** * Parse Money to a decimal number. * * @param money - The money value to parse * @returns Decimal number */ private parseMoneyToDecimal; /** * Default money conversion to USDC. * * @param amount - The decimal amount * @param network - The network to use * @returns The parsed asset amount in USDC */ private defaultMoneyConversion; /** * Convert a decimal amount string to a token amount string. * * @param amount - The decimal amount * @param decimals - Number of decimals for the token * @returns The amount in atomic units as a string */ private convertToTokenAmount; } export { ExactAptosScheme };