UNPKG

react-nepali-datetime-picker

Version:

A simple and reusable Nepali calendar, date and time picker components for React.

25 lines (24 loc) 970 B
/// <reference types="react" /> import { Language } from '../types/Language'; import { Day, Month, Year } from '../types/NepaliDate'; interface UseNepaliCalendarParams { lang?: Language; shortMonth?: boolean; } export declare const useNepaliCalendar: ({ lang, shortMonth, }: UseNepaliCalendarParams) => { selectedLocalisedYear: Year; setSelectedLocalisedYear: import("react").Dispatch<import("react").SetStateAction<Year>>; selectedLocalisedMonth: Month; setSelectedLocalisedMonth: import("react").Dispatch<import("react").SetStateAction<Month>>; selectedLocalisedDate: Day | undefined; setSelectedLocalisedDate: import("react").Dispatch<import("react").SetStateAction<Day | undefined>>; selectedLocalisedDates: Day[]; currentLocalisedDate: Day | undefined; years: Year[]; months: Month[]; days: import("../types/WeekDay").WeekDay[]; currentYear: Year; currentMonth: Month; currentDate: Day; }; export {};