import * as React from 'react'; export interface FieldsetCommonProps { /** * Element to render for the fieldset container. * @default 'fieldset' */ as?: 'fieldset' | 'div'; /** * @children required */ children: React.ReactNode; isInverse?: boolean; /** * Visible accessible label for the group. */ legend: React.ReactNode; /** * ID for the legend element. If omitted, a stable ID is generated. */ legendId?: string; /** * @internal */ testId?: string; /** * When true, visually hides the legend but keeps it accessible to screen readers. * @default false */ visuallyHiddenLegend?: boolean; } export interface FieldsetAsFieldsetProps extends FieldsetCommonProps, Omit, 'children'> { as?: 'fieldset'; } export interface FieldsetAsDivProps extends FieldsetCommonProps, Omit, 'children'> { as: 'div'; } export declare type FieldsetProps = FieldsetAsFieldsetProps | FieldsetAsDivProps; export declare const Fieldset: React.ForwardRefExoticComponent<(FieldsetAsFieldsetProps & React.RefAttributes) | (FieldsetAsDivProps & React.RefAttributes)>;