import { CustomLayerInterface, CustomRenderMethodInput, Map } from "maplibre-gl"; type MaplibreStarfieldLayerOptions = { /** Unique layer ID */ id?: string; /** Number of individual point stars (default: 4000) */ starCount?: number; /** Base point size for stars (default: 2.0) */ starSize?: number; /** Hex color for point stars (default: 0xffffff) */ starColor?: number; /** URL to a panoramic galaxy/milky-way texture (equirectangular). If omitted, only point stars are rendered. */ galaxyTextureUrl?: string; /** Brightness multiplier for the galaxy texture (default: 0.35) */ galaxyBrightness?: number; /** Enable sun rendering (default: false) */ sunEnabled?: boolean; /** * Sun azimuth in degrees. For globe projections this corresponds to the * subsolar longitude (where solar noon is occurring). The mapping is: * 0 = prime-meridian (+Z), 90 = 90 E (+X), 180 = antimeridian (-Z), 270 = 90 W (-X). * (default: 180) */ sunAzimuth?: number; /** * Sun altitude in degrees. For globe projections this corresponds to the * solar declination (-23.44 to +23.44). The mapping is: * 0 = equator, +90 = north-pole (+Y), -90 = south-pole (-Y). * (default: 45) */ sunAltitude?: number; /** Sun visual disc size in pixels (default: 100) */ sunSize?: number; /** Sun color as hex (default: 0xffeeaa) */ sunColor?: number; /** Sun glow intensity multiplier (default: 1.5) */ sunIntensity?: number; /** Automatically fade stars and galaxy when the sun is above the horizon (default: true) */ autoFadeStars?: boolean; /** * Override altitude used for the star/galaxy fade calculation. * When using geocentric sun coordinates (subsolar longitude + declination), * pass the observer's local sun altitude here so twilight fading is correct. * If omitted, `sunAltitude` is used. (degrees, -90 to 90) */ fadeAltitude?: number; }; declare class MaplibreStarfieldLayer implements CustomLayerInterface { id: string; type: 'custom'; renderingMode: '2d' | '3d'; private starCount; private starSize; private starColor; private galaxyTextureUrl; private galaxyBrightness; private _sunEnabled; private _sunAzimuth; private _sunAltitude; private _sunSize; private _sunColor; private _sunIntensity; private _autoFadeStars; private _fadeAltitude; private renderer; private scene; private camera; private map; private starMaterial; private galaxyMaterial; private sunMesh; private sunMaterial; constructor(options?: MaplibreStarfieldLayerOptions); /** * Update the sun position and re-render. * * For globe projections pass the subsolar longitude as `azimuth` * and the solar declination as `altitude`. Optionally pass the * observer's local sun altitude as `fadeAltitude` so the twilight * star-fade uses the correct value. */ setSunPosition(azimuth: number, altitude: number, fadeAltitude?: number): void; /** * Enable or disable the sun. */ setSunEnabled(enabled: boolean): void; /** * Update sun glow intensity. */ setSunIntensity(intensity: number): void; setSunSize(size: number): void; /** * Override the altitude used for star/galaxy fade calculation. * Pass the observer's local sun altitude when using geocentric sun coords. */ setFadeAltitude(altitude: number | undefined): void; onAdd(map: Map, gl: WebGLRenderingContext | WebGL2RenderingContext): void; render(_gl: WebGLRenderingContext | WebGL2RenderingContext, options: CustomRenderMethodInput): void; onRemove(): void; private createSun; private applySunPosition; private applyStarFade; private setFadeUniforms; } export { MaplibreStarfieldLayer, MaplibreStarfieldLayer as default, type MaplibreStarfieldLayerOptions }; //# sourceMappingURL=index.d.ts.map