UNPKG

muwaqqit

Version:

A powerful and flexible TypeScript library for calculating Islamic prayer times based on location, with customizable settings.

14 lines (13 loc) 565 B
import { PrayerTimesOptions, PrayerTimings, CalendarResponse, HijriDate, GregorianDate } from './types'; export declare class PrayerTimes { private options; constructor(options: PrayerTimesOptions); getTimes(date: Date): Promise<PrayerTimings>; getMonth(month: number, year: number): Promise<CalendarResponse>; getRange(start: string, end: string): Promise<CalendarResponse>; toHijri(date: string): Promise<HijriDate>; toGregorian(date: string): Promise<GregorianDate>; private formatTimings; private to12h; private to24h; }