/** * Bind a record of signals (or plain values) to an element's attributes reactively. * Each key maps to an attribute name; each value may be a signal, a Computed, * or a raw value. Signal values are unwrapped and kept live with a Computed effect. * * @example * bindAttrs(btn, { * disabled: this.is_readonly, // NativeSignal * "aria-pressed": this.show_versions, // NativeSignal * class: new Computed(() => // Computed * `version-item ${active.get() === v.id ? "active" : ""}`), * ["class.open"]:this.is_open, // NativeSignal * value: "static-value", // plain string — set once, not tracked * }); */ type SignalLike = { get(): T; }; export type AttrValue = SignalLike | string | boolean | number | null; export declare function bind_attrs(el: Element, attrs: Record): void; export {}; //# sourceMappingURL=bindAttrs.d.ts.map