/** * @fileoverview Solar position: geometric solar elevation for a UTC instant and a * geographic coordinate, and the sky-darkness state that elevation implies. Pure and * dependency-free; used to gate aurora visibility on whether the sun is up. * @module services/space-weather/solar-position */ /** * Geometric solar elevation in degrees (−90 to 90) at `at`, for a geographic * (WGS84) latitude and longitude. No atmospheric refraction is applied, so the value * is the sun's true angle above the horizon, not its apparent one. * * The NOAA Global Monitoring Laboratory solar-position algorithm (after Meeus, * *Astronomical Algorithms*): mean orbital elements in Julian centuries from J2000, * the equation of center, nutation- and aberration-corrected apparent longitude, and * the equation of time for the hour angle. Accurate to well under 0.1° across * 1901–2099, which is ample for a threshold at 0°, −6°, and −12°. UTC is used for TT; * the ~70 s difference moves the sun by about 0.3′. */ export declare function solarElevationDeg(at: Date, latitude: number, longitude: number): number; /** Sky-darkness states, brightest first. */ export declare const DARKNESS_STATES: readonly ['day', 'civil_twilight', 'nautical_twilight', 'dark']; export type Darkness = (typeof DARKNESS_STATES)[number]; /** * The darkness state for a solar elevation in degrees: `day` at 0° and above, * `civil_twilight` from −6° up to 0°, `nautical_twilight` from −12° up to −6°, and * `dark` below −12°. Each boundary value belongs to the brighter state. */ export declare function darknessFor(elevationDeg: number): Darkness; //# sourceMappingURL=solar-position.d.ts.map