import React from 'react'; import { TextInput, ViewStyle, TextStyle, StyleProp } from 'react-native'; import { type TestableProps } from '../../common/test'; import { type SpacingProps } from '../../../theme/spacing'; import { type BoxProps } from '../../common/box'; export interface TextAreaProps extends TestableProps, SpacingProps, BoxProps { value?: string; defaultValue?: string; placeholder?: string; secureTextEntry?: boolean; disabled?: boolean; error?: boolean; helperText?: string; size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl'; variant?: 'solid' | 'outline' | 'ghost'; color?: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info' | 'text' | 'subtext' | string; fullWidth?: boolean; flex?: number; style?: StyleProp; inputStyle?: TextStyle; rows?: number; autoSize?: boolean; allowClear?: boolean; editable?: boolean; leftIcon?: React.ReactNode | { name: string; color?: string; size?: number; }; rightIcon?: React.ReactNode | { name: string; color?: string; size?: number; onPress?: () => void; }; onChangeText?: (text: string) => void; onFocus?: () => void; onBlur?: () => void; } /** * 文本域组件:支持容器点击聚焦、固定高度滚动、内容自增高 */ declare const TextArea: React.ForwardRefExoticComponent>; export default TextArea; //# sourceMappingURL=TextArea.d.ts.map