import { FC } from 'react'; import { TextProps } from '../../../Text'; export type FieldsetLegendProps = TextProps; /** * `FieldsetLegend` is a semantic subcomponent of `Fieldset` used to render * the legend (title) for a group of related form controls. * * It composes the `Text` primitive and renders a native `` element * to preserve proper HTML semantics and accessibility for fieldsets. * * The component provides consistent typography and styling for fieldset * titles while allowing all standard `Text` props for customization. * * `FieldsetLegend` should be used within `FieldsetHeader` and directly * inside a `Fieldset` to ensure correct layout and a11y behavior. */ export declare const FieldsetLegend: FC;