import type { IGeoPoint } from "../../core/util/IGeoPoint"; import type { Entity } from "../../core/util/Entity"; import type { IDisposer } from "../../core/util/Disposer"; /** * Settings shared by the series that show day and night. * * @since 5.21.0 */ export interface ISunSettings { /** * The point where the sun is directly overhead. `am5map.getSunPosition()` * finds it for a date, or set `sunDate` to have the series find it. */ sunPosition?: IGeoPoint; /** * Works out `sunPosition` for this date: `"now"`, a timestamp in * milliseconds, a date string (e.g. `"2026-12-21T12:00:00Z"`) or a `Date`. * With `"now"` the sun moves with the clock, once a minute. Overrides * `sunPosition`. * * To change a `Date`, set a new one: a change made to the same object goes * unnoticed. * * @since 5.21.0 */ sunDate?: "now" | number | string | Date; /** * How wide the twilight between day and night is, in degrees of the sun's * height: day turns into night from half this above the horizon to half * below it. * * @default 12 */ twilight?: number; } /** * Keeps a series' `sunPosition` worked out from its `sunDate`. * * @ignore */ export declare class SunClock implements IDisposer { protected _entity: Entity; protected _timer?: number; protected _sunDate?: "now" | number | string | Date; protected _disposed: boolean; constructor(_entity: Entity); /** * Applies the entity's `sunDate`; call it when that changes. */ update(): void; protected _stop(): void; isDisposed(): boolean; dispose(): void; } //# sourceMappingURL=MapSun.d.ts.map