import React from 'react'; import { FieldState } from 'formstate-x'; import { CommonProps as InputCommonProps } from '../Input/input'; import * as base from '..'; import { CommonCheckboxProps } from '../Checkbox/InternalCheckbox'; declare type InputProps = Pick, 'value'>; /** 从 Input 控件的 props 类型中取出 value 的类型 */ declare type ValueOf

= P extends InputProps ? V : never; export declare type WithState

> = Omit & { /** 当前字段所对应的状态 */ state: FieldState>; }; export declare type WithStateForCommonCheckbox

= Omit & { /** 当前字段所对应的状态 */ state?: FieldState; }; export declare type TextInputProps = WithState; export declare function TextInput(props: TextInputProps): React.JSX.Element; export declare type AutoCompleteProps = WithState; export declare function AutoComplete(props: AutoCompleteProps): React.JSX.Element; export declare type PasswordInputProps = WithState; export declare function PasswordInput(props: PasswordInputProps): React.JSX.Element; export declare type NumberInputProps = WithState; export declare function NumberInput(props: NumberInputProps): React.JSX.Element; export declare type TextAreaProps = WithState; export declare function TextArea(props: TextAreaProps): React.JSX.Element; export declare type DatePickerProps = WithState; export declare function DatePicker(props: DatePickerProps): React.JSX.Element; export declare type RangeDatePickerProps = WithState; export declare function RangeDatePicker(props: RangeDatePickerProps): React.JSX.Element; export declare type SelectProps = WithState>; export declare function Select(props: SelectProps): React.JSX.Element; export declare type MultiSelectProps = WithState>; export declare function MultiSelect(props: MultiSelectProps): React.JSX.Element; export declare type CheckboxGroupProps = WithState>; export declare function CheckboxGroup(props: CheckboxGroupProps): React.JSX.Element; export declare type CheckboxProps = WithStateForCommonCheckbox>; export declare function Checkbox(props: CheckboxProps): React.JSX.Element; export declare type RadioGroupProps = WithState>; export declare function RadioGroup(props: RadioGroupProps): React.JSX.Element; export declare type RadioProps = WithStateForCommonCheckbox>; export declare function Radio(props: RadioProps): React.JSX.Element; export declare type SwitchProps = Omit & { /** 当前字段所对应的状态 */ state?: FieldState; }; export declare function Switch(props: SwitchProps): React.JSX.Element; export declare type TagsInputProps = WithState; export declare function TagsInput(props: TagsInputProps): React.JSX.Element; export {};