import { ReactNode } from 'react'; import { LabelProps } from '../Label/Label'; import { LegendProps } from './Legend'; export interface FormGroupProps { children?: ReactNode; id: string; label?: ReactNode; labelProps?: Partial | null; hint?: ReactNode; /** error message for this component */ error?: ReactNode; required?: boolean; /** set if form is a fieldset */ fieldset?: boolean | Partial; /** set to NOT append 'optional' onto label */ hideOptionalSuffix?: boolean; classBlock?: string; classModifiers?: string | string[]; className?: string | null; [key: string]: any; } export declare const DEFAULT_CLASS = "govuk-form-group"; /** * A group of form fields. * ## FieldSets FormGroups can also be used to generate `fieldset` groupings, in either HODS or GDS style. This is useful for checkbox or other input groupings. More information about the `fieldset` use of the FormGroup component can be found in [GDS Fieldset](https://design-system.service.gov.uk/components/fieldset/) */ export declare const FormGroup: ({ required, error, fieldset, hideOptionalSuffix, hint, classBlock, classModifiers, className, labelProps, children, id, label, ...attrs }: FormGroupProps) => import("react/jsx-runtime").JSX.Element;