import 'tdesign-icons-web-components/esm/components/browse'; import 'tdesign-icons-web-components/esm/components/browse-off'; import 'tdesign-icons-web-components/esm/components/close-circle-filled'; import { Component, OmiProps } from 'omi'; import { StyledProps } from '../common'; import { InputValue, TdInputProps } from './type'; export interface InputProps extends TdInputProps, StyledProps { showInput?: boolean; keepWrapperWidth?: boolean; onMyKeydown?: (value: InputValue, context: { e: KeyboardEvent; }) => void; onMyKeyup?: (value: InputValue, context: { e: KeyboardEvent; }) => void; } export interface InputRef { currentElement: HTMLDivElement; inputElement: HTMLInputElement; focus: () => void; blur: () => void; select: () => void; } export default class Input extends Component { static css: string[]; static defaultProps: { align: string; allowInputOverMax: boolean; autoWidth: boolean; autocomplete: any; autofocus: boolean; clearable: boolean; placeholder: string; readonly: boolean; showClearIconOnEmpty: boolean; showLimitNumber: boolean; size: string; status: any; type: string; defaultValue: string; borderless: boolean; }; static propTypes: { align: StringConstructor; allowInputOverMax: BooleanConstructor; autoWidth: BooleanConstructor; autocomplete: StringConstructor; autofocus: BooleanConstructor; clearable: BooleanConstructor; placeholder: StringConstructor; readonly: BooleanConstructor; showClearIconOnEmpty: BooleanConstructor; showLimitNumber: BooleanConstructor; size: StringConstructor; status: StringConstructor; type: StringConstructor; defaultValue: StringConstructor; borderless: BooleanConstructor; }; inputRef: Partial>; inputPreRef: Partial>; wrapperRef: Partial>; composingRef: Partial>; innerValue: any; composingValue: string; status: TdInputProps['status']; renderType: string; isFocused: boolean; isHover: boolean; eventPropsNames: any; eventProps: any; inputHandlerBind: any; constructor(); private get isControlled(); private handlePasswordVisible; private handleChange; private handleFocus; private handleBlur; private handleMouseEnter; private handleMouseLeave; private handleClear; private handleKeyDown; private handleKeyUp; private handleKeyPress; private handleCompositionStart; private handleCompositionEnd; private updateInputWidth; private resizeObserver; private inputHandler; install(): void; ready(): void; uninstall(): void; receiveProps(props: InputProps | OmiProps, oldProps: InputProps | OmiProps): void; render(props: OmiProps): JSX.Element; rendered(): void; }