import { P as PaywallNetworkHandler, a as PaywallConfig, b as PaywallProvider } from './types-BZP2rcES.js'; export { c as PaymentRequired, d as PaymentRequirements } from './types-BZP2rcES.js'; export { evmPaywall } from './evm/index.js'; export { svmPaywall } from './svm/index.js'; export { tonPaywall } from './ton/index.js'; export { tronPaywall } from './tron/index.js'; export { stacksPaywall } from './stacks/index.js'; export { cosmosPaywall } from './cosmos/index.js'; export { nearPaywall } from './near/index.js'; import * as react_jsx_runtime from 'react/jsx-runtime'; /** * Builder for creating configured paywall providers */ declare class PaywallBuilder { private config; private handlers; /** * Register a network-specific paywall handler * * @param handler - Network handler to register * @returns This builder instance for chaining */ withNetwork(handler: PaywallNetworkHandler): this; /** * Set configuration options for the paywall * * @param config - Paywall configuration options * @returns This builder instance for chaining */ withConfig(config: PaywallConfig): this; /** * Build the paywall provider * * @returns A configured PaywallProvider instance */ build(): PaywallProvider; } /** * Create a new paywall builder * * @returns A new PaywallBuilder instance */ declare function createPaywall(): PaywallBuilder; /** * Gasless ERC-4337 paywall handler for EVM networks. * * Renders a paywall page that indicates the payment will be gasless * (sponsored by a paymaster). Use this handler instead of `evmPaywall` * when your application supports gasless payments. * * The handler checks for `eip155:` network prefix AND * the `extra.gasless` field in payment requirements. * * @example * ```typescript * import { createPaywall, gaslessPaywall, evmPaywall } from '@t402/paywall'; * * const paywall = createPaywall() * .withNetwork(gaslessPaywall) // gasless first (checked before evm) * .withNetwork(evmPaywall) // fallback to regular EVM * .build(); * ``` */ declare const gaslessPaywall: PaywallNetworkHandler; /** * Transaction status states */ type TxStatus = "pending" | "confirming" | "confirmed" | "failed"; interface TransactionStatusProps { /** * Transaction hash */ txHash: string; /** * Network identifier (CAIP-2 format) */ network: string; /** * Number of confirmations required (default: 1) */ requiredConfirmations?: number; /** * Callback when transaction is confirmed */ onConfirmed?: () => void; /** * Callback when transaction fails */ onFailed?: (error: string) => void; } /** * Transaction status display component. * Shows transaction hash, explorer link, and confirmation status. */ declare function TransactionStatus({ txHash, network, requiredConfirmations, onConfirmed, onFailed, }: TransactionStatusProps): react_jsx_runtime.JSX.Element; /** * Hook to manage transaction status */ declare function useTransactionStatus(): { txHash: string | null; txNetwork: string | null; setTransaction: (hash: string, network: string) => void; clearTransaction: () => void; hasTransaction: boolean; }; export { PaywallBuilder, PaywallConfig, PaywallNetworkHandler, PaywallProvider, TransactionStatus, type TransactionStatusProps, type TxStatus, createPaywall, gaslessPaywall, useTransactionStatus };