import * as React from 'react'; import type { PanelMode, SharedPanelProps } from '../interface'; import type { FilledPanelClassNames, FilledPanelStyles } from '../hooks/useSemantic'; export interface SharedPanelContextProps { classNames: FilledPanelClassNames; styles: FilledPanelStyles; } export declare const SharedPanelContext: React.Context; export interface PanelContextProps extends Pick, 'prefixCls' | 'cellRender' | 'generateConfig' | 'locale' | 'onSelect' | 'hoverValue' | 'hoverRangeValue' | 'onHover' | 'values' | 'pickerValue' | 'disabledDate' | 'minDate' | 'maxDate' | 'prevIcon' | 'nextIcon' | 'superPrevIcon' | 'superNextIcon'> { /** Tell current panel type */ panelType: PanelMode; now: DateType; classNames: FilledPanelClassNames; styles: FilledPanelStyles; } /** Used for each single Panel. e.g. DatePanel */ export declare const PanelContext: React.Context>; export declare function usePanelContext(): PanelContextProps; /** * Get shared props for the SharedPanelProps interface. */ export declare function useInfo(props: SharedPanelProps, panelType: PanelMode): [sharedProps: PanelContextProps, now: DateType]; export interface PickerHackContextProps { hidePrev?: boolean; hideNext?: boolean; hideHeader?: boolean; onCellDblClick?: () => void; } /** * Internal usage for RangePicker to not to show the operation arrow */ export declare const PickerHackContext: React.Context;