import { type CommonMiddlewareArgs } from "./common.js"; import type { MiddlewareHandler } from "hono"; /** * Configuration arguments for creating Hono payment middleware. */ type CreateMiddlewareArgs = { /** * If true, authorize the payment before running the handler and * capture it after. Otherwise capture once up-front. */ authorizeBeforeCapture?: boolean; } & CommonMiddlewareArgs; /** * Creates Hono middleware that gates routes behind x402 and MPP payment. * * The middleware intercepts requests, checks for payment headers, validates * and settles payments via x402 or MPP protocol, and only allows the * request to proceed if payment is successful. * * @param args - Configuration including handlers + pricing or facilitator URL * @returns A Hono middleware handler */ export declare function createMiddleware(args: CreateMiddlewareArgs): Promise; export {}; //# sourceMappingURL=hono.d.ts.map