import { addTimeToObj , CalendarObject , timeObjFromCalendarObj , timeObjFromEpochSeconds , timeObjToSeconds , timeObjToWeekday , timeObjToYear , } from './chrono_luxon/chrono_luxon' ; internal export type CalendarUnit = 'days' ; internal export const propsFromCalendarObj = ( calendarObj , timeZone ) : [ number , number ] => { const t = timeObjFromCalendarObj ( calendarObj , timeZone ) ; return [ timeObjToSeconds ( t ) , timeObjToWeekday ( t ) ] ; } ; internal export const epochInSecondsToYear = ( timeZone , seconds ) => timeObjToYear ( timeObjFromEpochSeconds ( timeZone , seconds ) ) ; internal export const addTime = ( calendarObj , timeZone , unit , count ) => timeObjToSeconds ( addTimeToObj ( timeObjFromCalendarObj ( calendarObj , timeZone ) , unit , count ) ) ;