1 | import * as React from 'react';
|
2 | import type { GenerateConfig } from 'rc-picker/lib/generate/index';
|
3 | import type { AnyObject } from '../../_util/type';
|
4 | import type { GenericTimePickerProps, PickerProps, PickerPropsWithMultiple } from './interface';
|
5 | export default function generatePicker<DateType extends AnyObject>(generateConfig: GenerateConfig<DateType>): {
|
6 | DatePicker: (<ValueType = DateType>(props: PickerPropsWithMultiple<DateType, PickerProps<DateType>, ValueType>) => React.ReactElement) & {
|
7 | displayName?: string | undefined;
|
8 | };
|
9 | WeekPicker: (<ValueType_1 = DateType>(props: PickerPropsWithMultiple<DateType, Omit<PickerProps<DateType>, "picker">, ValueType_1>) => React.ReactElement) & {
|
10 | displayName?: string | undefined;
|
11 | };
|
12 | MonthPicker: (<ValueType_1 = DateType>(props: PickerPropsWithMultiple<DateType, Omit<PickerProps<DateType>, "picker">, ValueType_1>) => React.ReactElement) & {
|
13 | displayName?: string | undefined;
|
14 | };
|
15 | YearPicker: (<ValueType_1 = DateType>(props: PickerPropsWithMultiple<DateType, Omit<PickerProps<DateType>, "picker">, ValueType_1>) => React.ReactElement) & {
|
16 | displayName?: string | undefined;
|
17 | };
|
18 | TimePicker: (<ValueType_2 = DateType>(props: PickerPropsWithMultiple<DateType, Omit<GenericTimePickerProps<DateType>, "picker">, ValueType_2>) => React.ReactElement) & {
|
19 | displayName?: string | undefined;
|
20 | };
|
21 | QuarterPicker: (<ValueType_1 = DateType>(props: PickerPropsWithMultiple<DateType, Omit<PickerProps<DateType>, "picker">, ValueType_1>) => React.ReactElement) & {
|
22 | displayName?: string | undefined;
|
23 | };
|
24 | };
|
25 |
|
\ | No newline at end of file |