import { Http, Response } from '@angular/http'; import { WeatherSearchParams, Coordinates } from './classes'; import { WeatherConfig } from '../weather-config'; import { Observable } from 'rxjs'; export declare class OpenWeatherMapService { private url; private findUrl; private forecastUrl; private http; private key; constructor(http: Http, config: WeatherConfig); /** * Get the current weather * @params params WeatherSearchParams * @return Observable */ getCurrentWeather(params: WeatherSearchParams): Observable; /** * Get the weather arround a given coordinate * @params coordinates Coordinates * @params count number * @params lang string * @return Observable */ getWeatherArround(coordinates: Coordinates, count?: number, lang?: string): Observable; /** * Get the weather forecast of a given area * * @params params WeatherSearchParams * @return Observable * */ getForecast(params: WeatherSearchParams): Observable; }