import type { OneOrMany } from './types.ts'; /** * Set or get HTML attributes on one or more elements. * * Provides a unified interface for attribute manipulation, * mirroring the `css()` pattern with `.remove()` and `.has()` methods. * * @example * attr(el, { 'data-id': '123', role: 'button' }); * attr(el, 'role'); // → 'button' * attr(el, ['role', 'data-id']); // → { role: 'button', 'data-id': '123' } * attr.remove(el, 'role'); * attr.has(el, 'disabled'); // → boolean */ declare function attr(els: OneOrMany, attrs: Record): void; declare function attr(el: Element, name: string): string | null; declare function attr(el: Element, names: string[]): Record; declare namespace attr { var remove: (els: OneOrMany, names: string | string[]) => void; var has: (el: Element, name: string) => boolean; } export { attr };