import { ListboxOption } from '@microsoft/fast-foundation'; /** * @tagname %%prefix%%-optgroup */ export declare class Optgroup extends ListboxOption { /** * We extend ListboxOption to ensure this component passes the default slottedOptionFilter * in FASTSelect, which checks for `instanceof ListboxOption` or `role="option"`. * This allows the group to be slotted into the listbox, where our custom Select logic * then handles flattening the children. * * We also set role="option" in the template because FASTSelect's internal logic and * event handlers query for elements with role="option". Without this, the group (and * its children) may be ignored or event delegation might fail. * * We disable it to prevent it from being selectable itself. */ /** * The label for the group. * Named groupLabel to avoid name conflict with ListboxOption.label. * @public * @remarks * HTML Attribute: label */ groupLabel: string; connectedCallback(): void; } /** * The Foundation Optgroup * * @public * @remarks * HTML Element: \ */ export declare const foundationOptgroup: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition) => import("@microsoft/fast-foundation").FoundationElementRegistry; //# sourceMappingURL=optgroup.d.ts.map