import * as react from 'react'; import { FormControlOptions } from './form-control.js'; import '@chakra-ui/system'; import '@chakra-ui/react-types'; interface UseFormControlProps extends FormControlOptions { id?: string; onFocus?: React.FocusEventHandler; onBlur?: React.FocusEventHandler; disabled?: boolean; readOnly?: boolean; required?: boolean; "aria-describedby"?: string; } /** * React hook that provides the props that should be spread on to * input fields (`input`, `select`, `textarea`, etc.). * * It provides a convenient way to control a form fields, validation * and helper text. * * @internal */ declare function useFormControl(props: UseFormControlProps): { disabled: boolean; readOnly: boolean; required: boolean; "aria-invalid": boolean | undefined; "aria-required": boolean | undefined; "aria-readonly": boolean | undefined; "aria-describedby": string | undefined; id: string; onFocus: (event: react.FocusEvent) => void; onBlur: (event: react.FocusEvent) => void; }; /** * @internal */ declare function useFormControlProps(props: UseFormControlProps): { "aria-describedby": string | undefined; id: string; isDisabled: boolean; isReadOnly: boolean; isRequired: boolean; isInvalid: boolean; onFocus: (event: react.FocusEvent) => void; onBlur: (event: react.FocusEvent) => void; }; export { UseFormControlProps, useFormControl, useFormControlProps };