type BasePickerContextValue = { /** * The value that user is currently viewing */ viewingValue: Date; /** * Function to set the viewing value */ setViewingValue: (date: Date) => void; /** * The date that should be focused after value change. * This is needed to maintain keyboard navigation focus when navigating between values. * When a user navigates to a date in a different value (e.g. using arrow keys), * the DateCell components are unmounted and remounted during the value transition. * We store the target date here so we can restore focus to the correct cell * after the new value's cells are mounted. */ pendingFocusDate: string | null; /** * Function to set the date that should be focused after viewing value change */ setPendingFocusDate: (date: string | null) => void; /** * The base format of the date string */ baseFormat: string; }; type BasePickerProviderProps = { /** * The initial viewing value */ initialViewingValue?: Date; /** * The currently selected date */ value?: Date; /** * The internal value from input field */ internalValue?: string; /** * The format of the date string */ format?: string; /** * The base format of the date string */ baseFormat?: string; /** * The children components */ children: React.ReactNode; }; /** * Provider component for BasePicker context * This provider manages the viewingValue state and provides functions to manipulate it */ export declare function BasePickerProvider({ initialViewingValue, value, internalValue, format, baseFormat, children, }: BasePickerProviderProps): import("react/jsx-runtime").JSX.Element; /** * Hook to access BasePicker context * * @throws {Error} If used outside of BasePickerProvider */ export declare function useBasePickerContext(): BasePickerContextValue; export {};