import type { JSX, ValidComponent } from "@solidjs/web"; import type { BaseUIComponentProps } from "../../internals/types.js"; export interface FieldsetLegendState { /** Mirrors the root's `disabled` flag. */ disabled: boolean; } export interface FieldsetLegendProps extends BaseUIComponentProps<"legend", FieldsetLegendState> { /** Tag/component to render. Defaults to `"legend"`. */ as?: ValidComponent; } /** * An accessible label that is automatically associated with the fieldset. * Renders a `` element (or `as` override). * * On mount, registers its id with the root so `aria-labelledby` wires up. * On unmount, clears the registration. The root's `legendId` signal opts into * `ownedWrite` so the write from `useRegisteredLabelId`'s owned setup/cleanup * doesn't trip the Solid 2 write-in-owned-scope check. */ export declare function FieldsetLegend(props: FieldsetLegendProps): JSX.Element; //# sourceMappingURL=fieldset-legend.d.ts.map