import * as React from 'react'; import { FormControlProps } from './FormControl.types'; /** * @internal */ export type FormControlContextValue = undefined | (Pick & { /** * id for FormLabel. */ labelId: string; /** * id for Input. */ htmlFor: string | undefined; /** * If `true`, the form element has some value. */ filled: boolean; /** * If `true`, the form element is focused and not disabled. */ focused: boolean; /** * Callback fired when the form element has lost focus. */ onBlur: () => void; /** * Callback fired when the form element receives focus. */ onFocus: () => void; }); declare const FormControlContext: React.Context & { /** * id for FormLabel. */ labelId: string; /** * id for Input. */ htmlFor: string | undefined; /** * If `true`, the form element has some value. */ filled: boolean; /** * If `true`, the form element is focused and not disabled. */ focused: boolean; /** * Callback fired when the form element has lost focus. */ onBlur: () => void; /** * Callback fired when the form element receives focus. */ onFocus: () => void; }>; export declare function useFormControlContext(): FormControlContextValue | undefined; export default FormControlContext;