import { AllHTMLAttributes, Ref, RefObject } from 'react'; import { A11yFocusOptions, A11yRequiredOptions } from '../hooks'; import { A11yFocusableRef, A11yTextFieldIntrinsic } from '../types'; export interface A11yTextFieldOptions extends A11yFocusOptions, A11yRequiredOptions { type?: 'text' | 'number' | 'password'; onClear?: () => void; onToggle?: () => void; } export interface A11yTextField { textFieldProps: AllHTMLAttributes; textFieldRef: RefObject; onClear?: () => void; onToggle?: () => void; focusVisible: boolean; passwordShown: boolean; focused: boolean; invalid: boolean; } export declare const useTextField: (props: A11yTextFieldOptions, ref: Ref>) => A11yTextField;