import React from 'react'; import { TextInput, ViewStyle, TextStyle, StyleProp } from 'react-native'; import { IconType } from '../Icon'; import { SpacingProps } from '../../../theme/spacing'; import { TestableProps } from '../../common/test'; import { BoxProps } from '../../common/box'; export type InputSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl'; export type InputVariant = 'solid' | 'outline' | 'ghost'; export interface InputProps extends SpacingProps, TestableProps, BoxProps { value?: string; defaultValue?: string; placeholder?: string; secureTextEntry?: boolean; disabled?: boolean; error?: boolean; helperText?: string; size?: InputSize; variant?: InputVariant; color?: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info' | 'text' | 'textSecondary' | string; fullWidth?: boolean; flex?: number; style?: StyleProp; inputStyle?: StyleProp; leftIcon?: { name: string; color?: string; size?: number; type?: IconType; }; rightIcon?: { name: string; color?: string; size?: number; onPress?: () => void; type?: IconType; }; editable?: boolean; keyboardType?: import('react-native').KeyboardTypeOptions; returnKeyType?: import('react-native').ReturnKeyType; autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters'; maxLength?: number; onChangeText?: (text: string) => void; onFocus?: () => void; onBlur?: () => void; /** * 是否在渲染后自动聚焦;并通过回调返回是否成功获得焦点 */ autoFocus?: boolean; /** * 自动聚焦结果回调:true=获得焦点,false=未获得焦点 */ onAutoFocusResult?: (focused: boolean) => void; accessibilityLabel?: string; accessibilityHint?: string; testID?: string; } declare const Input: React.ForwardRefExoticComponent>; export default Input; //# sourceMappingURL=Input.d.ts.map