/** * @fileoverview Forecast data types for weather predictions. * @module meteo-lt-sdk/types/forecasts */ import type { ForecastConditionCode } from './conditions.js'; import type { PlaceDetails, ForecastType } from './places.js'; /** * A single forecast timestamp with all weather parameters. * Represents predicted weather conditions for a specific point in time. */ export interface ForecastTimestamp { /** Forecast time in UTC (ISO 8601 format) */ readonly forecastTimeUtc: string; /** Air temperature in degrees Celsius */ readonly airTemperature: number; /** Feels-like temperature in degrees Celsius */ readonly feelsLikeTemperature: number; /** Wind speed in meters per second */ readonly windSpeed: number; /** Maximum wind gust in m/s (max over 1h when step is 1h, 3h when step is 3h, etc.) */ readonly windGust: number; /** Wind direction in degrees (0 = from north, 180 = from south) */ readonly windDirection: number; /** Cloud cover percentage (0 = clear, 100 = overcast) */ readonly cloudCover: number; /** Atmospheric pressure at sea level in hPa */ readonly seaLevelPressure: number; /** Relative humidity percentage */ readonly relativeHumidity: number; /** Total precipitation in mm (sum over 1h when step is 1h, 3h when step is 3h, etc.) */ readonly totalPrecipitation: number; /** Weather condition code */ readonly conditionCode: ForecastConditionCode; } /** * Complete forecast response for a place. * Returned by GET /places/{place-code}/forecasts/{forecast-type} endpoint. */ export interface Forecast { /** Place information */ readonly place: PlaceDetails; /** Type of forecast */ readonly forecastType: ForecastType; /** When the forecast was created (UTC, ISO 8601 format) */ readonly forecastCreationTimeUtc: string; /** Array of forecast data points */ readonly forecastTimestamps: readonly ForecastTimestamp[]; } //# sourceMappingURL=forecasts.d.ts.map