UNPKG

rui-weather-service-api

Version:

Weather API service with OpenWeatherMap integration - includes both standalone API and MCP server

31 lines 923 B
import { WeatherData, ForecastData, WeatherOptions } from '../types/index.js'; /** * Weather API Client for OpenWeatherMap */ export declare class WeatherApiClient { /** * Creates a new WeatherApiClient instance * @param options Configuration options */ constructor(options?: WeatherOptions); /** * Gets current weather for a location * @param city City name * @returns Weather data */ getCurrentWeather(city: string): Promise<WeatherData>; /** * Gets weather forecast for a location * @param city City name * @param days Number of days (1-5) * @returns Forecast data */ getForecast(city: string, days?: number): Promise<ForecastData>; /** * Validates input parameters * @param city City name */ private validateInputs; } export declare const weatherApi: WeatherApiClient; //# sourceMappingURL=weather-api.d.ts.map