/** * XAPIFi Client SDK * * Usage in browser/client applications */ interface ClientConfig { /** Optional facilitator URL */ facilitatorUrl?: string; } declare class XAPIFiClient { private config; constructor(config?: ClientConfig); /** * Wrapper around fetch that handles x402 payments automatically * * Usage: * ```typescript * const client = new XAPIFiClient(); * const response = await client.fetch('/api/generate', { * method: 'POST', * body: JSON.stringify({ prompt: 'Hello' }), * }); * ``` */ fetch(url: string, options?: RequestInit): Promise; /** * Get payment requirements for an endpoint without making a request */ getRequirements(endpoint: string): Promise; } export { type ClientConfig, XAPIFiClient, XAPIFiClient as default };