import React, { KeyboardEvent } from 'react'; import { IconProps } from '../Icon/index.js'; import { KeyHintProps } from '../KeyHint/index.js'; import { Style } from 'inlines'; type TextInputProps = { ref?: React.Ref; value?: string; onChange: (value: string) => void; disabled?: boolean; placeholder?: string; prefix?: string | React.ReactNode; leadIcon?: IconProps['variant']; error?: boolean; maxLength?: number; clearable?: boolean; suffix?: string | React.ReactNode; keyHint?: KeyHintProps['hint']; type?: 'text' | 'email' | 'password'; size?: 'regular' | 'small'; variant?: 'border' | 'ghost'; isUrl?: boolean; isPhone?: boolean; onKeyDown?: (event: KeyboardEvent) => void; autoFocus?: boolean; onBlur?: React.FocusEventHandler; pattern?: RegExp; passwordToggle?: boolean; style?: Style; label?: string; description?: string; errorMessage?: string; onFocus?: React.FocusEventHandler; }; declare const TextInput: React.ForwardRefExoticComponent & React.RefAttributes>; export type { TextInputProps }; export { TextInput };