@x402/paywall 0.0.1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,40 @@
1
+ import { P as PaywallNetworkHandler, a as PaywallConfig, b as PaywallProvider } from './types-CHiWR9_p.cjs';
2
+ export { c as PaymentRequired, d as PaymentRequirements } from './types-CHiWR9_p.cjs';
3
+ export { evmPaywall } from './evm/index.cjs';
4
+ export { svmPaywall } from './svm/index.cjs';
5
+
6
+ /**
7
+ * Builder for creating configured paywall providers
8
+ */
9
+ declare class PaywallBuilder {
10
+ private config;
11
+ private handlers;
12
+ /**
13
+ * Register a network-specific paywall handler
14
+ *
15
+ * @param handler - Network handler to register
16
+ * @returns This builder instance for chaining
17
+ */
18
+ withNetwork(handler: PaywallNetworkHandler): this;
19
+ /**
20
+ * Set configuration options for the paywall
21
+ *
22
+ * @param config - Paywall configuration options
23
+ * @returns This builder instance for chaining
24
+ */
25
+ withConfig(config: PaywallConfig): this;
26
+ /**
27
+ * Build the paywall provider
28
+ *
29
+ * @returns A configured PaywallProvider instance
30
+ */
31
+ build(): PaywallProvider;
32
+ }
33
+ /**
34
+ * Create a new paywall builder
35
+ *
36
+ * @returns A new PaywallBuilder instance
37
+ */
38
+ declare function createPaywall(): PaywallBuilder;
39
+
40
+ export { PaywallBuilder, PaywallConfig, PaywallNetworkHandler, PaywallProvider, createPaywall };