import { Hono } from 'hono'; import type { x402HTTPResourceServer } from '@x402/core/server'; import type { ProviderEnv } from '../middleware/pre-settled.js'; import type { AzethSIWxStorage } from '../storage.js'; /** Create the x402-gated pricing routes. * * Uses @x402/hono middleware for V2 protocol support including: * - PAYMENT-SIGNATURE / PAYMENT-RESPONSE headers (v2) * - SIWx wallet-based sessions (pay once, then access via wallet sig) * - Payment agreement extension (subscription terms in 402 response) * - Pre-settled smart account payments (X-Payment-Tx header bypass) * * The root GET / serves the off-chain catalog (free, no payment required). * When httpServer is null, paid routes return 503 (graceful degradation). * * When `storage` is provided, two additional wirings activate: * - F4: `X-Access-Grant: session | agreement` response header on SIWx grants * without fresh settlement (accessGrantHeaderMiddleware). * - N5: pre-settled payments (X-Payment-Tx) are recorded into the SIWx storage * so repeat requests with a wallet signature don't re-settle (double-charge fix). * Storage omitted → byte-identical previous behavior. */ export declare function createPricingRoutes(httpServer: x402HTTPResourceServer | null, storage?: AzethSIWxStorage | null): Hono; //# sourceMappingURL=pricing-routes.d.ts.map