import { DatePickerView } from '../types'; export interface UseViewsParams { /** * The view to open by default. * @default 'day' */ openTo?: DatePickerView; /** * Available views. * @default ['day', 'month', 'year'] */ views?: readonly DatePickerView[] | DatePickerView[]; /** * Callback fired when the view changes. */ onViewChange?: (view: DatePickerView) => void; } export interface UseViewsResult { /** * Current active view. */ view: DatePickerView; /** * Set the current view. */ setView: (view: DatePickerView) => void; /** * List of available views. */ views: readonly DatePickerView[]; /** * Go to next view in the sequence. */ nextView: () => void; /** * Go to previous view in the sequence. */ previousView: () => void; } /** * Hook to manage date picker views (day, month, year). * * @param params Views parameters * @returns View state and handlers */ export declare function useViews(params: UseViewsParams): UseViewsResult;