import * as React from 'react';
import type { BackyardBaseProps } from '../utils/typings/BackyardProps';
import type { BDSForwardRef } from '../utils/typings/BDSComponentProps';
/**
* Backyard React Form Control
*
* Allows control over form components.
* Passes `state` through form components and helper text, to sync visually.
* Uses component's 'bdsName' metadata to configure helper text.
*
* Combine with `FormHeading`, `FormGroup` and `FormHelperText` to construct form heirarchy
*
* ```
*
* What colors were Gandalf's robes in LotR?
*
* }
* label="White"
* />
* }
* label="Gray"
* />
* }
* label="Black"
* />
*
* Select all that apply
*
* ```
* or
* ```
*
* What colors were Gandalf's robes in LotR?
*
* Select all that apply
*
* ```
*/
declare const FormControl: BDSForwardRef;
declare type FormControlRef = HTMLDivElement;
interface FormControlProps extends BackyardBaseProps {
/**
* React Children
*/
children: React.ReactElement | React.ReactElement[];
/**
* DOM Class Name
*/
className?: string;
/**
* Component to render as
*/
component?: React.ElementType;
/**
* Controls the disabled state of children
*/
disabled?: boolean;
/**
* Controls state of children
*/
state?: 'error' | 'success' | 'warning' | 'info';
}
export { FormControl };
export type { FormControlProps, FormControlRef };
export default FormControl;