/** * The visible month of a travel calendar, which the app owns. * * The calendar never changes the month itself. Everything that would move it, * the month buttons, the month picker, the arrow keys and a new value, asks the * app instead, through onVisibleMonthChange. * * The request is always the first day of the month. The arrow keys and the * month picker work with other days of the month, and the app should get the * same month in the same form whichever way it was reached. * * A request for the month that is already visible is not made at all. The * check is against the month of the last render, so two requests made before * the app has passed a month back, such as two quick clicks while it loads, * both reach it, the same way two quick edits reach any controlled input * that updates later. The second request is left to the app rather than * dropped here, since the app may not have taken the first. * * The month is kept by year and month, so an app that passes a new Date on * every render, such as new Date(), does not rebuild the calendar each time. */ export declare const useControlledVisibleMonth: (visibleMonthValue: Date, onVisibleMonthChange: (visibleMonth: Date) => void, today: Date) => { visibleMonth: Date; setVisibleMonth: (requested: Date) => void; setVisibleMonthClamped: (requested: Date) => void; };