/** * HTTP Client for KizooShop API * Handles authentication, retries, and error formatting */ export declare class KizooShopClient { private apiUrl; private token; private maxRetries; private timeout; constructor(apiUrl: string, token: string); /** * Decode the JWT token to extract shopId and userId (without verification) */ getTokenPayload(): { userId?: string; shopId?: string; }; /** * Perform a GET request with retry logic */ get(path: string): Promise; /** * Perform a POST request with retry logic */ post(path: string, body: Record): Promise; /** * Perform a PUT request with retry logic */ put(path: string, body: Record): Promise; /** * Perform a PATCH request with retry logic */ patch(path: string, body: Record): Promise; /** * Perform a DELETE request with retry logic */ delete(path: string, body?: Record): Promise; /** * Perform a POST request with FormData (for file uploads and multipart) */ postForm(path: string, fields: Record): Promise; /** * Core request method with exponential backoff retry logic */ private request; /** * Execute a single HTTP request with FormData */ private requestFormData; /** * Execute a single HTTP request */ private executeRequest; /** * Handle HTTP response and parse errors */ private handleResponse; /** * Calculate exponential backoff delay with jitter * Pattern: 1s, 2s, 4s (with random jitter ±25%) */ private exponentialBackoff; /** * Sleep for specified milliseconds */ private sleep; } //# sourceMappingURL=client.d.ts.map