/** * TyOption Web Component - rich HTML alternative to native . * Property-attribute synchronization keeps it compatible with frameworks. * * Two kinds of selection state, never mixed: * - `selected` (attribute/property) is the APP's mark. Only ty-select's * `external-selection` mode reads it; otherwise the select's `value` rules. * - `checked` (property only) is what the parent ty-select decided: it draws * the check and aria-selected. Never written to an attribute, so a server * morph has nothing of ours to strip. * role="option" is an attribute (audit tools like axe don't read * ElementInternals); it never changes, and comes back if a morph strips it. */ import type { TyOptionElement } from '../types/common.js'; export declare class TyOption extends HTMLElement implements TyOptionElement { private _value; private _selected; private _checked; private _inTrigger; private _disabled; private _highlighted; private _hidden; private _internals; constructor(); static get observedAttributes(): string[]; connectedCallback(): void; attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void; /** * Get value from either property or attribute, with textContent fallback. * Property takes precedence (for framework compatibility). */ private getOptionValue; get value(): string | undefined; set value(val: string | undefined); /** The app's mark, read by ty-select only in `external-selection` mode. */ get selected(): boolean; set selected(value: boolean); /** Set by the parent ty-select: draws the check and aria-selected. */ get checked(): boolean; set checked(value: boolean); /** Set by the parent ty-select while this option is shown in its trigger. */ get inTrigger(): boolean; set inTrigger(value: boolean); get disabled(): boolean; set disabled(value: boolean); get highlighted(): boolean; set highlighted(value: boolean); get hidden(): boolean; set hidden(value: boolean); private render; }