import { Fieldset } from './ontario-fieldset.interface'; import { CaptionType } from '../../utils/common/input-caption/input-caption.types'; import { FormGap } from '../../utils/components/form-container/form-container.interface'; /** * Ontario Fieldset groups related form controls under a shared legend. * * For component guidance, see: * - https://designsystem.ontario.ca/components/detail/fieldsets.html * - https://designsystem.ontario.ca/developer-docs/components/ontario-fieldset/ */ export declare class OntarioFieldset implements Fieldset { element: HTMLElement; /** * The text value used for the legend of the fieldset. */ legend: string; /** * The size of the fieldset legend. If no prop is passed, it will be `default`. */ legendSize: CaptionType; /** * The following states are used to determine if the parent is a `ontario-form-container` component. * This is to help style the form children if they are contained within a fieldset. */ hasFormContainerParent: boolean; /** * The spacing value applied to fieldset elements when inside an `ontario-form-container`. * This ensures consistent vertical spacing between form elements when they are grouped inside a fieldset. */ gapValue: FormGap; /** * Watch for changes to the legendSize prop. * This is for validation purposes to make sure the legendSize matches one of the CaptionTypes. */ validateLegendSize(): "default" | "large" | "heading"; validateLegend(): void; /** * Print the legend warning message */ validateLegendText(newValue: string): void; componentWillLoad(): void; private getLegendClass; private getFieldsetClass; private initializeFormContainerSettings; render(): any; }