import { ReactNode } from 'react'; import { ITouchEvent, InputProps as TaroInputProps, TextareaProps } from '@tarojs/components'; import { BaseProps } from '../base'; interface InputBaseProps extends BaseProps { value?: string; defaultValue?: string; onChange?: (value: string) => void; disabled?: boolean; readOnly?: boolean; maxLength?: number; showCount?: boolean; count?: (currentCount: number, maxLength: number) => ReactNode; autoHeight?: boolean; borderless?: boolean; inlaid?: boolean; prepend?: ReactNode; append?: ReactNode; addon?: ReactNode; clearable?: boolean; showClearOnlyFocus?: boolean; clear?: ReactNode; onClear?: (value: '') => void; onClick?: (event: ITouchEvent) => void; focused?: boolean; placeholder?: string; } interface InputInputProps extends InputBaseProps, Omit { type?: TaroInputProps['type'] | 'password'; confirmType?: TaroInputProps['confirmType']; } interface InputTextareaProps extends InputBaseProps, Omit { type: 'textarea'; confirmType?: TextareaProps['confirmType']; } export type InputProps = InputInputProps | InputTextareaProps; export declare const Input: (props: InputProps) => import("react/jsx-runtime").JSX.Element; export default Input;