/** * background-card-element.ts - Custom Element * * Interactive background selection card. Framework-agnostic. * * Attributes: type, label, gradient, accent-color, selected, disabled, * tilt-degrees, glow-size * * Events: background-select ({ type: string }) * * Slot: default — icon content (light DOM, inherits consumer CSS). * Falls back to SVG from the registry when no slot content provided. * * Shadow DOM with open mode. Parts exposed for ::part() styling. */ /** * `HTMLElement` does not exist during SSR, and `class X extends undefined` * throws at module evaluation — importing this file server-side was enough to * crash the render, before any custom element was ever constructed. Extending a * stub off-DOM keeps the module importable; registration is guarded separately * and only ever happens in a browser. * * Consumers previously carried this as a patch against dist. Fixed at source in * 0.7.1 so the patch can be dropped. */ declare const HTMLElementBase: typeof HTMLElement; export declare class BackgroundCardElement extends HTMLElementBase { static get observedAttributes(): readonly string[]; private _shadow; private _fillEl; private _glowEl; private _iconEl; private _fallbackIcon; private _nameEl; private _ringEl; private _tiltHandle; private _glowHandle; private _spring; constructor(); connectedCallback(): void; disconnectedCallback(): void; attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void; private _buildDOM; private _applyAttributes; /** * When `type` is set, pull defaults from the registry for any * attribute the consumer hasn't explicitly overridden. */ private _applyTypeDefaults; private _updateGradient; private _updateAccent; private _updateLabel; private _updateFallbackIcon; private _syncAriaChecked; private _syncDisabled; private _getMeta; private _attachEffects; private _attachInteraction; private _handleActivation; private _handleKeydown; } /** * Register the custom element. * Safe to call multiple times — only registers once. * Call this in your app's entry point or top-level component. */ export declare function registerBackgroundCard(): void; export {}; //# sourceMappingURL=background-card-element.d.ts.map