import React from "react"; import type { InputProps, PasswordProps, SearchProps, TextAreaProps, InputRef } from "antd/es/input"; import type { ControlledFormValue } from "../../internal/type"; type ExcludedAntInputKeys = "value" | "onChange" | "addonBefore" | "addonAfter"; export type FocusType = "cursor-at-start" | "cursor-at-last" | "select-all" | "prevent-scroll"; export interface InputReadonlyProps extends Omit { value: string; } export interface InputSearchProps extends Omit, ControlledFormValue { } export interface InputTextAreaProps extends Omit, ControlledFormValue { } export interface InputPasswordProps extends Omit, ControlledFormValue { } export interface InputNullableProps extends Omit, ControlledFormValue { autoTrim?: boolean; } export interface InputNullableTextAreaProps extends Omit, ControlledFormValue { } export interface Props extends Omit, ControlledFormValue { autoTrim?: boolean; focus?: FocusType; inputRef?: React.RefObject; } export interface InputHandler { blur: () => void; focus: (focusType?: FocusType) => void; } export declare const Input: React.ForwardRefExoticComponent> & { Readonly: (props: InputReadonlyProps) => React.JSX.Element; Search: ({ onChange, ...rest }: InputSearchProps) => React.JSX.Element; TextArea: ({ onChange, ...rest }: InputTextAreaProps) => React.JSX.Element; Password: ({ onChange, ...rest }: InputPasswordProps) => React.JSX.Element; Nullable: ({ value, onChange, ...rest }: InputNullableProps) => React.JSX.Element; NullableTextArea: ({ value, onChange, ...rest }: InputNullableTextAreaProps) => React.JSX.Element; }; export {};