import { JSX } from "solid-js"; import { FormControlOptions } from "./form-control"; export interface UseFormControlProps extends FormControlOptions { "aria-describedby"?: string; onFocus?: JSX.EventHandlerUnion; onBlur?: JSX.EventHandlerUnion; } export interface UseFormControlReturn { id?: string; required?: boolean; disabled?: boolean; invalid?: boolean; readOnly?: boolean; "aria-required"?: boolean; "aria-disabled"?: boolean; "aria-invalid"?: boolean; "aria-readonly"?: boolean; "aria-describedby"?: string; onFocus?: JSX.EventHandlerUnion; onBlur?: JSX.EventHandlerUnion; } /** * 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 */ export declare function useFormControl(props: UseFormControlProps): UseFormControlReturn; //# sourceMappingURL=use-form-control.d.ts.map