import React from "react"; import { Moment } from "moment"; import { ControlledProps } from "../form/controlled"; import { CommonDatePickerProps } from "./DatePickerProps"; import { TimeDisabledProps } from "../timepicker/TimeProps"; import { RangeDateType, showTimeType } from "../calendar/DateProps"; export interface RangePickerProps extends CommonDatePickerProps, ControlledProps { /** * 分隔符 * @default ~ */ separator?: string; /** * 是否开启时间选择,可传递对象设定时间选择配置 */ showTime?: showTimeType; /** * 不可选的日期 */ disabledDate?: (date: Moment, startDate?: Moment) => boolean; /** * 不可选的月份 */ disabledMonth?: (date: Moment, startDate?: Moment) => boolean; /** * 不可选的季度 */ disabledQuarter?: (date: Moment, startDate?: Moment) => boolean; /** * 日历类型 * @default date */ calendarType?: "date" | "month" | "quarter"; /** * 不可选的时间 */ disabledTime?: (dates: RangeDateType, partial: "start" | "end") => TimeDisabledProps; } export declare function isValidRangeValue(value: any): boolean; export declare const RangePicker: React.FunctionComponent> & { defaultLabelAlign: string; };