import * as React from "react"; import type { defs } from "../FormHost"; import type { AriaAttributes, ElementType } from "react"; import type { ReactNode } from "react"; interface FormElementProps { /** * The components contained by this Form Element. * * When a function is specified, the aria attributes for the title and description/accessible description are returned, * to allow the consumer to assign them to the appropriate HTML Element. * * When a node is specified, the legacy behaviour of assigning the aria attributes to the root of the Form Element is used. */ children?: ReactNode | ((ariaAttributes: AriaAttributes) => ReactNode); /** * The CSS class name of the root element. */ className?: string; /** * The component used for the root node. Either a string to use a HTML element or a component. The default is "div". */ component?: ElementType; /** * The Form Element to be rendered within this Component. */ element: defs.Element; /** * The id of the default input to be associated with the title. */ inputId?: string; /** * The name of the element. */ name: string | undefined; } declare const _default: React.ForwardRefExoticComponent>; export default _default;