import React from "react"; import { MarginProps } from "styled-system"; import { TagProps } from "../../__internal__/utils/helpers/tags"; export interface FieldsetProps extends MarginProps, TagProps { /** Inputs rendered within the fieldset. */ children?: React.ReactNode; /** Set an id value on the fieldset. */ id?: string; /** The content for the fieldset legend. */ legend?: string; /** Content for an additional hint text below the legend. */ legendHint?: string; /** Set the label weight of the children input's label. */ labelWeight?: "regular" | "bold"; /** Error message to be displayed when validation fails. */ error?: string; /** Warning message to be displayed when validation warning occurs. */ warning?: string; /** If true, an asterisk will be added to the legend and all inputs within the fieldset will be required. */ required?: boolean; /** Specifies whether the validation message should be displayed above the input. */ validationMessagePositionTop?: boolean; /** Set the size of the component. */ size?: "small" | "medium" | "large"; /** Set the orientation of the fieldset's children. */ orientation?: "horizontal" | "vertical"; } export declare const Fieldset: ({ children, id, legend, legendHint, labelWeight, error, warning, required, validationMessagePositionTop, size, orientation, ...rest }: FieldsetProps) => React.JSX.Element; export default Fieldset;