import { ConfigService } from '@nestjs/config'; import { FoodItem } from '../models/food-item.model'; import { APICache } from '../models/api-cache.model'; export declare class NutritionService { private configService; private foodItemModel; private apiCacheModel; private apiKey; private baseUrl; private headers; private cacheDurationDays; constructor(configService: ConfigService, foodItemModel: typeof FoodItem, apiCacheModel: typeof APICache); searchFood(query: string): Promise<{ name: any; calories: any; protein_g: any; carbs_g: any; fat_g: any; fiber_g: any; sugar_g: any; sodium_mg: any; serving_size_g: any; source: string; }[]>; _getFromCache(query: string): Promise<{ name: any; calories: any; protein_g: any; carbs_g: any; fat_g: any; fiber_g: any; sugar_g: any; sodium_mg: any; serving_size_g: any; source: string; }[]>; _saveToCache(query: string, source: string, data: any): Promise; _parseApiResponse(data: any[]): { name: any; calories: any; protein_g: any; carbs_g: any; fat_g: any; fiber_g: any; sugar_g: any; sodium_mg: any; serving_size_g: any; source: string; }[]; saveFoodToDb(foodData: any): Promise; searchAllSources(query: string): Promise; }