import React, { type FieldsetHTMLAttributes } from "react";
import type { FormFieldProps } from "../useFormField";
export interface FieldsetProps extends FormFieldProps, FieldsetHTMLAttributes<HTMLFieldSetElement> {
    /**
     * Form fields in Fieldset.
     */
    children: React.ReactNode;
    /**
     * Fieldset legend.
     */
    legend: React.ReactNode;
    /**
     * If enabled, shows the legend and description for screen readers only.
     */
    hideLegend?: boolean;
    /**
     * Toggles error propagation to child-elements.
     * @default true
     */
    errorPropagation?: boolean;
}
/**
 * Component for grouping form fields.
 *
 * **NB: Only for special use cases.** Form fields should not be grouped by default,
 * except for checkboxes and radio buttons, for which CheckboxGroup/RadioGroup should be used instead.
 *
 * @see [📝 Documentation](https://aksel.nav.no/komponenter/core/fieldset)
 * @see 🏷️ {@link FieldsetProps}
 *
 * @example
 * ```jsx
 * <Fieldset legend="Telefonnummer">
 *   <TextField label="Landkode" />
 *   <TextField label="Nummer" />
 * </Fieldset>
 * ```
 */
export declare const Fieldset: React.ForwardRefExoticComponent<FieldsetProps & React.RefAttributes<HTMLFieldSetElement>>;
export default Fieldset;
