import * as React from 'react'; import { Moment } from 'moment'; import QuickButton from './components/QuickButton'; import './index.less'; export declare type DateType = 'date' | 'year-month' | 'week' | 'custom'; export declare type DatePickerIndexProps = { onChange: (params: any) => void; onType?: (type: DateType) => void; businessDaySwitch?: boolean; rightIcon?: React.ReactNode; style?: React.CSSProperties; searchBusinessDay?: boolean; pickDateType?: DateType[]; subTitle?: string; disabledToday?: boolean; quickSwitchButton?: { dates: Moment[]; }; }; export interface PickerDateSwitchProps { onCancel: () => void; onConfirm: (file: any, parma: any) => void; setType: (t: any) => void; subTitle?: string; disabledToday?: boolean; changeValue: string; setChangeValue: React.Dispatch>; value?: any; setValue?: React.Dispatch>; } declare type CompoundedComponent = DatePickerIndexProps & { QuickButton?: typeof QuickButton; }; export declare const Context: React.Context<{ pickDateType: DateType[]; disabledToday: boolean; }>; declare const DatePickerIndex: { ({ onChange, onType, businessDaySwitch, rightIcon, style, searchBusinessDay, pickDateType, subTitle, disabledToday, quickSwitchButton, }: CompoundedComponent): JSX.Element; QuickButton: ({ dates, dateType, onChange, disabledToday, }: { dates: Moment[]; dateType: DateType; onChange: (value: Moment[]) => void; disabledToday: boolean; }) => JSX.Element | null; }; export default DatePickerIndex;