import { FunctionComponent } from 'react'; import { WeatherData } from './WeatherView'; interface MainProps { apiKey: string; location: string; onGetWeatherData?: (options: { apiKey: string; location: string; }) => Promise; } export interface OpenWeatherMapData { coord: { lon: number; lat: number; }; weather: [{ id: number; main: string; description: string; icon: string; }]; base: string; main: { temp: number; feels_like: number; temp_min: number; temp_max: number; pressure: number; humidity: number; }; visibility: number; wind: { speed: number; deg: number; }; clouds: { all: number; }; dt: number; sys: { type: number; id: number; country: string; sunrise: number; sunset: number; }; timezone: number; id: number; name: string; cod: number; } export declare const weatherDataFromOpenMapData: (data: OpenWeatherMapData) => WeatherData; declare const Main: FunctionComponent; export default Main;