import { LitElement } from "lit"; export type LedMode = `brightness` | `blink` | `pulse`; export declare class LedElement extends LitElement { #private; value: number; lit: boolean; color: string; glow: boolean; /** * Operating mode: * - `brightness` (default): {@link value} sets the LED brightness directly * - `blink`: LED blinks on/off every {@link rate} milliseconds (this mode * is what the legacy `blinking` attribute now selects) * - `pulse`: LED sits unlit until {@link pulse} is called, which fires an * attack/release envelope up to {@link value} and back down */ mode: LedMode; /** * Legacy alias for `mode="blink"`. Setting `blinking` switches {@link mode} * to `blink`; clearing it returns to `brightness`. */ blinking: boolean; rate: number; /** Pulse-mode attack time in milliseconds (0 → instant). */ attackTime: number; /** Pulse-mode release/decay time in milliseconds (0 → instant). */ releaseTime: number; /** * Pulse-mode retrigger behaviour. When set, each {@link pulse} call restarts * the envelope from 0. When unset (default), the attack ramps from wherever * the envelope currently sits, so a retrigger mid-decay is continuous. */ pulseRetrigger: boolean; willUpdate(changedProperties: Map): void; disconnectedCallback(): void; /** * Pulse-mode trigger: lights the LED to {@link value} using an attack/release * envelope, then decays back to unlit. Calling again restarts the envelope * (from 0 if {@link pulseRetrigger} is set, otherwise from the current level). * No-op unless {@link mode} is `pulse`. */ pulse(): void; protected render(): import("lit").TemplateResult<1>; static styles: import("lit").CSSResult; } declare global { interface HTMLElementTagNameMap { "ixfx-led": LedElement; } }