import type { X402PaymentRequirements } from './types.js'; export type BuildChallengeInput = { asset: string; network: string; payTo: string; amount: string | number | bigint; resource: string; description?: string; mimeType?: string; maxTimeoutSeconds?: number; extra?: { name?: string; version?: string; }; }; export type X402ChallengeBody = { x402Version: 1; accepts: X402PaymentRequirements[]; error?: string; }; export declare const buildChallenge: (input: BuildChallengeInput) => X402ChallengeBody; export type DecodedXPayment = { x402Version: number; scheme: string; network: string; payload: { signature: string; authorization: { from: string; to: string; value: string; validAfter: string; validBefore: string; nonce: string; }; }; }; export declare const decodeXPaymentHeader: (header: string | undefined | null) => DecodedXPayment; export declare const USDC_DECIMALS = 6; export declare const usdc: (network: string) => { contract: string; domain: { name: string; version: string; }; decimals: number; } | undefined; export declare const isMainnet: (network: string) => boolean; export declare const isTestnet: (network: string) => boolean; export declare const explorerTxUrl: (network: string, txHash: string | undefined | null) => string | null; export declare const formatUsdc: (baseUnits: number | bigint | string, opts?: { symbol?: boolean; }) => string; //# sourceMappingURL=x402.d.ts.map