export type X402ResourceInfo = { url: string; description?: string; mimeType?: string; }; export type X402PaymentRequirements = { scheme: string; network: string; amount: string; asset: string; payTo: string; maxTimeoutSeconds: number; extra?: Record; }; export type X402PaymentRequired = { x402Version: number; error?: string; resource: X402ResourceInfo; accepts: X402PaymentRequirements[]; extensions?: Record; }; export type X402EvmAuthorization = { from: string; to: string; value: string; validAfter: string; validBefore: string; nonce: string; }; export type X402EvmExactPayload = { signature: string; authorization: X402EvmAuthorization; }; export type X402PaymentPayload = { x402Version: number; resource?: X402ResourceInfo; accepted: X402PaymentRequirements; payload: X402EvmExactPayload; extensions?: Record; }; export type X402TokenExtra = { name: string; version: string; }; export type X402SpendPreview = { chain_id: number; kind: "x402_payment"; token_symbol: string; token_address: string; amount_human: string; amount_atoms: string; from: string; to: string; policy_ok: boolean; session_id: string; reason: string; resource_url: string; }; export type X402RequestTarget = { url: string; method?: string; }; export type PendingX402 = { id: string; authorization: X402EvmAuthorization; accepted: X402PaymentRequirements; eip712: X402TokenExtra; resource?: X402ResourceInfo; request: X402RequestTarget; spend_preview: X402SpendPreview; }; //# sourceMappingURL=types.d.ts.map