export type Daynight = (options?: DaynightOptions) => DaynightResult; export interface DaynightOptions { /** * Force the timezone for the calculation * See [Advanced Usage][https://github.com/romanyanke/daynight#advanced-usage] */ timezone?: string; /** * Force the date for the calculation * See [Advanced Usage][https://github.com/romanyanke/daynight#advanced-usage] */ date?: Date; } export type DaynightTheme = 'day' | 'night'; export interface DaynightResult { /** * The theme of the daynight: `day` when the `light` is true, `night` when the `dark` is true. */ theme: DaynightTheme; /** * The brightness of the daynight. The value from 0 to 1. * See [Brightness Calculation](https://github.com/romanyanke/daynight#brightness-calculation) */ brightness: number; /** * The timezone used for the calculation */ timezone: string; /** * Coordinates of the center of the timezone */ coordinates: [number, number]; /** * True if the sun is above the horizon */ light: boolean; /** * True if the sun is below the horizon */ dark: boolean; /** * Estimated time of sunset */ sunset: Date; /** * Estimated time of sunrise */ sunrise: Date; } export declare const daynight: Daynight;