import type { PaywallConfig, GenericRequest, GenericResponse } from './types.js'; export type NextFunction = () => void | Promise; /** * Framework-agnostic paywall middleware supporting x402 and MPP protocols. * * Accepts credentials from either protocol regardless of the `protocol` config. * The `protocol` setting controls which challenge format(s) are advertised in * the 402 response. */ export declare function createPaywall(config: PaywallConfig): (req: GenericRequest, res: GenericResponse, next: NextFunction) => Promise; //# sourceMappingURL=middleware.d.ts.map