/** * @fileoverview Weather condition codes for forecasts and observations. * @module meteo-lt-sdk/types/conditions */ /** * Weather condition codes used in forecast data. * These are the possible values returned by the forecast API. */ export declare const FORECAST_CONDITION_CODES: readonly ["clear", "partly-cloudy", "cloudy-with-sunny-intervals", "cloudy", "light-rain", "rain", "heavy-rain", "thunder", "isolated-thunderstorms", "thunderstorms", "heavy-rain-with-thunderstorms", "light-sleet", "sleet", "freezing-rain", "hail", "light-snow", "snow", "heavy-snow", "fog"]; /** * Weather condition code type for forecast data. * Null indicates conditions could not be determined. */ export type ForecastConditionCode = (typeof FORECAST_CONDITION_CODES)[number] | null; /** * Weather condition codes used in observation data. * This is a superset of forecast conditions with additional observational values. */ export declare const OBSERVATION_CONDITION_CODES: readonly ["clear", "partly-cloudy", "variable-cloudiness", "cloudy-with-sunny-intervals", "cloudy", "rain-showers", "light-rain-at-times", "rain-at-times", "light-rain", "rain", "heavy-rain", "thunder", "isolated-thunderstorms", "thunderstorms", "sleet-showers", "sleet-at-times", "light-sleet", "sleet", "freezing-rain", "hail", "snow-showers", "light-snow-at-times", "snow-at-times", "light-snow", "snow", "heavy-snow", "snowstorm", "fog", "squall"]; /** * Weather condition code type for observation data. * Null indicates conditions could not be determined. */ export type ObservationConditionCode = (typeof OBSERVATION_CONDITION_CODES)[number] | null; /** * Type guard to check if a value is a valid forecast condition code. * @param value - The value to check * @returns True if the value is a valid forecast condition code */ export declare function isForecastConditionCode(value: unknown): value is ForecastConditionCode; /** * Type guard to check if a value is a valid observation condition code. * @param value - The value to check * @returns True if the value is a valid observation condition code */ export declare function isObservationConditionCode(value: unknown): value is ObservationConditionCode; /** * Human-readable descriptions for weather condition codes in English. */ export declare const CONDITION_DESCRIPTIONS: Readonly>; /** * Gets the human-readable description for a condition code. * @param code - The condition code * @returns Human-readable description or 'Unknown' if not found */ export declare function getConditionDescription(code: ForecastConditionCode | ObservationConditionCode): string; //# sourceMappingURL=conditions.d.ts.map