import * as React from 'react'; import { FieldRoot } from '../root/FieldRoot.js'; import { AnchorUIComponentProps } from '../../utils/types.js'; /** * The form control to label and validate. * Renders an `` element. * * You can omit this part and use any Anchor UI input component instead. For example, * [Input](https://anchorui.com/react/components/input), [Checkbox](https://anchorui.com/react/components/checkbox), * or [Select](https://anchorui.com/react/components/select), among others, will work with Field out of the box. * * Documentation: [Anchor UI Field](https://anchorui.com/react/components/field) */ declare const FieldControl: React.ForwardRefExoticComponent>; declare namespace FieldControl { type State = FieldRoot.State; interface Props extends AnchorUIComponentProps<'input', State> { /** * Callback fired when the `value` changes. Use when controlled. */ onValueChange?: (value: string | number | readonly string[] | undefined, event: Event) => void; } } export { FieldControl };