import type { EventBus } from '../event-bus.js'; import type { Wake } from '@enbox/dwn-sdk-js'; import type { Subscription } from '@nats-io/transport-node'; type WakeListener = (wake: Wake) => void; /** * NATS-backed {@link EventBus}. * * This plugin is only a cross-process wake transport. The durable replication * log, cursor validation, filtering, and replay all live in the MessageStore. */ export default class NatsEventBus implements EventBus { #private; constructor(); open(): Promise; close(): Promise; publish(wake: Wake): void; subscribe(listener: WakeListener): () => void; consumeWakes(subscription: Subscription): Promise; private notify; } export {}; //# sourceMappingURL=event-bus-nats.d.ts.map