import { UElement } from '../UElement.js'; import { UOption } from '../option/UOption.js'; /** * A labelled group of `u-option`s inside a `u-select` or a `u-input` combobox — the native ``. * * The heading is not an option: it takes no focus, cannot be selected, and keyboard movement goes from the last option * of one group to the first of the next. For assistive technology the group is `role="group"` named by `label`, the * listbox pattern's grouping. While none of its options is visible — a search filtered them all out, or it has none — * the whole group, heading included, is hidden (`:state(empty)`). * * @slot - `u-option` items * * @csspart label - The heading * @csspart options - The box around the options */ export declare class UOptionGroup extends UElement { static styles: import('lit').CSSResultGroup[]; /** The heading, and the group's accessible name. */ label: string; private readonly aria; private readonly internals; /** Watches the options: added or removed, hidden or shown by a search. */ private readonly observer; /** * The group's options, in order. Matched by tag, not class: a group parsed together with its options is connected * before they are upgraded, and the `instanceof` test then saw none — the group hid itself as empty. */ get options(): UOption[]; connectedCallback(): void; disconnectedCallback(): void; protected updated(changed: Map): void; private syncEmpty; render(): import('lit-html').TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { 'u-option-group': UOptionGroup; } } /** * The options among a listbox's slotted elements, in order — the elements themselves and the options inside groups. * `u-select` and the `u-input` combobox collect through this, so a group is transparent to their keyboard, filter and * selection. */ export declare function collectOptions(elements: Element[]): UOption[];