export type DrupalAttributeEntry = string | Array | Record | boolean | null | undefined; export interface DrupalAttribute extends Map { addClass(...args: Array>): this; hasClass(key: string): boolean; removeClass(value: string | Array): this; } export declare class DrupalAttribute extends Map { getClasses(): Array | null; setAttribute(key: string, value: DrupalAttributeEntry): this; removeAttribute(key: string): this; toString(): string; /** * Merge another DrupalAttribute instance into this one. */ merge(collection: DrupalAttribute): this; mergeDeep(target: Record, source: Record): Record; } export default DrupalAttribute;