import type { AriaRole, InputHTMLAttributes } from "react";
import type { UseLabelProps, UseLabelReturn } from "../useLabel/useLabel";
import type { FocusEvents, Validation } from "../../types";
export type UseTextFieldProps = UseLabelProps & FocusEvents & Validation & Pick, "defaultValue" | "value" | "onChange" | "autoComplete" | "maxLength" | "minLength" | "name" | "placeholder" | "inputMode" | "type" | "pattern" | "onCopy" | "onCut" | "onPaste" | "onKeyDown" | "onKeyUp" | "onKeyPress" | "onCompositionEnd" | "onCompositionStart" | "onCompositionUpdate" | "onSelect" | "onBeforeInput" | "onInput" | "min" | "max" | "step"> & {
inputElementType?: "input" | "textarea" | undefined;
defaultValue?: string | undefined;
value?: string | undefined;
isDisabled?: boolean | undefined;
isReadOnly?: boolean | undefined;
isRequired?: boolean | undefined;
description?: string | undefined;
errorMessage?: string | undefined;
"aria-describedby"?: string | undefined;
"aria-errormessage"?: string | undefined;
role?: AriaRole | undefined;
};
export type UseTextFieldReturn = {
labelProps: UseLabelReturn["labelProps"];
inputProps: InputHTMLAttributes;
descriptionProps: {
id?: string | undefined;
};
errorMessageProps: {
id?: string | undefined;
};
};