import * as React from 'react'; import { type UseFormReturn } from 'react-hook-form'; type FormControlProps = { id?: string; }; type FormFieldContextValue = { controlId?: string; name?: string; }; type UseFormControlPropsOptions = { enabled?: boolean; }; type WithoutAriaInvalid = Omit & { 'aria-invalid'?: never; }; declare const FormFieldContext: React.Context; declare const FormInputGroupContext: React.Context; declare function getErrorMessage(error: unknown): React.ReactNode; declare function useFieldName(name: string | undefined): string | undefined; declare function useFormControlProps(props?: FormControlProps, { enabled }?: UseFormControlPropsOptions): { 'aria-invalid': boolean | undefined; id: string | undefined; }; declare function useFormMethods(): UseFormReturn; declare function useRequiredFieldName(name: string | undefined, componentName: string): string; export { FormFieldContext, FormInputGroupContext, getErrorMessage, useFieldName, useFormControlProps, useFormMethods, useRequiredFieldName, }; export type { FormControlProps, FormFieldContextValue, UseFormControlPropsOptions, WithoutAriaInvalid, }; //# sourceMappingURL=Form.context.d.ts.map