import type { SuperPrecioApiConfig, SearchRequest, SearchResponse } from '../types/index.js'; export declare class SuperPrecioApiClient { private client; private config; private csrfToken; constructor(config: SuperPrecioApiConfig); /** * Get CSRF token from the server */ private getCsrfToken; /** * Search products by description or EAN code */ searchProducts(params: SearchRequest): Promise; /** * Search products by code/barcode */ searchByCode(code: string): Promise; /** * Subscribe device to notifications */ subscribeDevice(token: string): Promise; /** * Send notification to specific device */ sendNotification(data: { token: string; title: string; body: string; data?: Record; }): Promise; /** * Broadcast notification to all devices */ broadcastNotification(data: { title: string; body: string; data?: Record; }): Promise; /** * Health check - verify API is accessible */ healthCheck(): Promise; /** * Get all shopping lists */ getShoppingLists(params?: { userId?: number; }): Promise; /** * Create a new shopping list */ createShoppingList(data: { name: string; description?: string; userId?: number; items?: Array<{ productName: string; barcode?: string; quantity?: number; notes?: string; }>; }): Promise; /** * Get a specific shopping list */ getShoppingList(id: number): Promise; /** * Delete a shopping list */ deleteShoppingList(id: number): Promise; /** * Add items to a shopping list */ addItemsToList(id: number, items: Array<{ productName: string; barcode?: string; quantity?: number; notes?: string; }>): Promise; /** * Optimize shopping list - find best supermarket */ optimizeShoppingList(id: number): Promise; /** * Get all price alerts */ getPriceAlerts(params?: { userId?: number; isActive?: boolean; }): Promise; /** * Create a price alert */ createPriceAlert(data: { productName: string; barcode?: string; targetPrice: number; userId?: number; notifyEnabled?: boolean; }): Promise; /** * Update a price alert */ updatePriceAlert(id: number, data: { targetPrice?: number; isActive?: boolean; notifyEnabled?: boolean; }): Promise; /** * Delete a price alert */ deletePriceAlert(id: number): Promise; /** * Check price alerts - verify current prices */ checkPriceAlerts(params?: { userId?: number; alertId?: number; }): Promise; /** * Find nearby supermarkets */ findNearbySupermarkets(params: { lat: number; lng: number; radius?: number; }): Promise; /** * Get all locations */ getLocations(params?: { supermarketId?: number; city?: string; }): Promise; /** * Handle API errors */ private handleError; } /** * Create API client from environment variables */ export declare function createApiClient(): SuperPrecioApiClient; //# sourceMappingURL=superPrecioApi.d.ts.map