import type { FieldsetProps } from "./Fieldset.js";
/**
 * Handles props for Fieldset in context with parent Fieldset.
 */
export declare const useFieldset: (props: FieldsetProps, legendId: string) => {
    readOnlyIconNeedsTitle: import("../checkbox/CheckboxGroup.context.js").CheckboxGroupContextProps | import("../radio/RadioGroup.context.js").RadioGroupContextProps | null;
    inputProps: {
        "aria-labelledby": string;
        "aria-invalid"?: boolean | undefined;
    };
    showErrorMsg: boolean;
    hasError: boolean;
    errorId: string;
    inputDescriptionId: string;
    size: "small" | "medium";
    readOnly?: boolean;
};
