import type { ListenerFn, PubSubTopics, Subscribed } from '../services/pubsub.js'; export default class Module { root_: Element; name_: string; static attachTo(root: Element): Module; constructor(root: Element); start(): void; subscribe(topic: K, handler: ListenerFn): Subscribed; subscribeOnce(topic: K, handler: ListenerFn): Subscribed; publish(topic: K, data?: PubSubTopics[K]): void; log(msg: string, raw?: boolean, error?: boolean): void; }