/** How a property is read from its attribute. `object` props (arrays, objects, functions) have no attribute. */ export type PropType = 'string' | 'boolean' | 'number' | 'object'; export interface PropDef { type: PropType; default: unknown; /** Attribute name. Defaults to the kebab-case prop name; `false` = property only. */ attribute?: string | false; /** Write the property back to its attribute (booleans toggle it). */ reflect?: boolean; } /** * Base for every @sylar_iii/ui element: typed props mirrored to attributes, * microtask-batched updates, an open shadow root with the element's styles, and composed events. * Subclasses declare props with `declare name: Type;` (never as class fields, which would hide the accessors). */ export declare abstract class SyElement extends HTMLElement { static props: Record; static styles: string; static shadowOptions: ShadowRootInit; private static _finalized; static get observedAttributes(): string[]; /** Registers the element once; later calls (HMR, two bundles) are ignored. */ static define(tag: string): void; private static _finalize; protected readonly root: ShadowRoot; private readonly _values; private readonly _pending; private _scheduled; private _forced; private _rendered; private _reflecting; constructor(); connectedCallback(): void; attributeChangedCallback(attr: string, _old: string | null, value: string | null): void; /** Builds the shadow DOM once, on first connect. */ protected abstract render(root: ShadowRoot): void; /** Applies changed props to the DOM. Runs once per microtask with every prop changed since the last run. */ protected abstract update(changed: ReadonlySet): void; /** Schedules update(); without a name it still runs (for state that is not a prop). */ protected requestUpdate(name?: string): void; protected emit(name: string, detail?: T, cancelable?: boolean): boolean; protected ref(name: string): T; private get _ctor(); private _setProp; private _reflect; private _flush; }