import React from 'react'; import type { InputRef, InputProps as RcInputProps } from '@rc-component/input'; import type { InputFocusOptions } from '@rc-component/util/lib/Dom/focus'; import { triggerFocus } from '@rc-component/util/lib/Dom/focus'; import type { SemanticClassNamesType, SemanticStylesType } from '../_util/hooks'; import type { InputStatus } from '../_util/statusUtils'; import type { Variant } from '../config-provider'; import type { SizeType } from '../config-provider/SizeContext'; export type { InputFocusOptions }; export type { InputRef }; export { triggerFocus }; export type InputSemanticName = keyof InputSemanticClassNames & keyof InputSemanticStyles; export type InputSemanticClassNames = { root?: string; prefix?: string; suffix?: string; input?: string; count?: string; }; export type InputSemanticStyles = { root?: React.CSSProperties; prefix?: React.CSSProperties; suffix?: React.CSSProperties; input?: React.CSSProperties; count?: React.CSSProperties; }; export type InputClassNamesType = SemanticClassNamesType; export type InputStylesType = SemanticStylesType; export interface InputProps extends Omit { rootClassName?: string; size?: SizeType; disabled?: boolean; status?: InputStatus; /** * @deprecated Use `Space.Compact` instead. * * @example * ```tsx * import { Space, Input } from 'antd'; * * * {addon} * * * ``` */ addonBefore?: React.ReactNode; /** * @deprecated Use `Space.Compact` instead. * * @example * ```tsx * import { Space, Input } from 'antd'; * * * * {addon} * * ``` */ addonAfter?: React.ReactNode; /** @deprecated Use `variant="borderless"` instead. */ bordered?: boolean; /** * @since 5.13.0 * @default "outlined" */ variant?: Variant; classNames?: InputClassNamesType; styles?: InputStylesType; [key: `data-${string}`]: string | undefined; } declare const Input: React.ForwardRefExoticComponent>; export default Input;