type DayFormat = "D" | "DD"; type WeekDayFormat = "eee" | "eeee"; type MonthFormat = "M" | "MM" | "MMMM"; type YearFormat = "YY" | "YYYY" | "YYYYb"; type CalculationMethod = "BD" | "IN"; interface DateOptions { format?: string; calculationMethod?: CalculationMethod; } interface DayOptions extends DateOptions { format?: DayFormat; } interface WeekDayOptions extends DateOptions { format?: WeekDayFormat; } interface MonthOptions extends DateOptions { format?: MonthFormat; } interface YearOptions extends DateOptions { format?: YearFormat; } declare function getDate(date?: Date, options?: DateOptions): string; declare function getDay(date?: Date, options?: DayOptions): string; declare function getWeekDay(date?: Date, options?: WeekDayOptions): string; declare function getMonth(date?: Date, options?: MonthOptions): string; declare function getYear(date?: Date, options?: YearOptions): string; export { getDate, getDay, getWeekDay, getMonth, getYear };