1 | import * as React from 'react';
|
2 | import { BasePickerProps } from '../typings/BasePicker';
|
3 | import { ToolbarComponentProps } from './Picker';
|
4 | import { ExtendWrapper } from '../wrappers/Wrapper';
|
5 | import { PureDateInputProps } from '../_shared/PureDateInput';
|
6 | import { DateValidationProps } from '../_helpers/text-field-helper';
|
7 | import { KeyboardDateInputProps } from '../_shared/KeyboardDateInput';
|
8 | import { StateHookOptions, usePickerState } from '../_shared/hooks/usePickerState';
|
9 | import { BaseKeyboardPickerProps, useKeyboardPickerState } from '../_shared/hooks/useKeyboardPickerState';
|
10 | export declare type WithKeyboardInputProps = DateValidationProps & BaseKeyboardPickerProps & ExtendWrapper<KeyboardDateInputProps>;
|
11 | export declare type WithPureInputProps = DateValidationProps & BasePickerProps & ExtendWrapper<PureDateInputProps>;
|
12 | export interface MakePickerOptions<T extends any> {
|
13 | Input: any;
|
14 | useState: typeof usePickerState | typeof useKeyboardPickerState;
|
15 | useOptions: (props: any) => StateHookOptions;
|
16 | getCustomProps?: (props: T) => Partial<T>;
|
17 | DefaultToolbarComponent: React.ComponentType<ToolbarComponentProps>;
|
18 | }
|
19 | export declare function makePickerWithState<T extends any>({ Input, useState, useOptions, getCustomProps, DefaultToolbarComponent, }: MakePickerOptions<T>): React.FC<T>;
|