import { Ref, ReactElement, RefAttributes } from "react"; import { AriaTextFieldOptions } from "@react-aria/textfield"; import { FocusEvents, HoverEvents, Validation, DOMProps } from "@react-types/shared"; import { TextInputProps } from "../TextInput"; import { LabelProps } from "../Label"; import { ForwardedRefComponent } from "../../types/components"; export declare type TextFieldElementType = HTMLInputElement; export interface LabelComponentProps extends LabelProps, Validation { } export interface TextInputComponentProps extends TextInputProps, DOMProps, Validation, HoverEvents, FocusEvents { isHovered?: boolean; isFocusVisible?: boolean; isDisabled?: boolean; } export interface TextFieldProps extends DOMProps, AriaTextFieldOptions, HoverEvents, FocusEvents, RefAttributes { labelComponent?: ReactElement; inputComponent?: ReactElement; className?: string; errorMessage?: string; } export declare type TextFieldRef = Ref; declare const TextField: ForwardedRefComponent; export { TextField };