import { DatePickerProps, TimePickerProps } from 'antd'; import type { Dayjs } from 'dayjs'; import React from 'react'; import type { ProFormOtherType } from '../../../propsType'; import type { ProRangeLimitType } from '../ProRangeLimit/propsType'; import type { DistributiveOmit } from '../../../../ProForm/propsType'; export type DateType = DatePickerProps['value']; export type ProTimeLimitType = DistributiveOmit & { value?: string; onChange?: (value: ProTimeLimitType['value'] | null, valueData: Dayjs) => void; disabled?: boolean; foreverDate?: string; foreverText?: string; viewEmpty?: React.ReactNode; format?: string; valueType?: 'dayjs' | 'format' | 'ISO' | 'dateTime' | 'dateStartEndTime'; otherProps?: ProFormOtherType; mode?: 'DatePicker'; isView?: boolean; /** * 是否限制时间范围 */ limit?: boolean; } & TimePickerProps & { showTime?: DatePickerProps['showTime']; showNow?: boolean; }; export declare const ProTimeLimit: React.FC; export type ProLimitType = ProTimeLimitType | (ProRangeLimitType & { mode: 'RangePicker'; }); declare const LimitPick: React.FC; export default LimitPick;