UNPKG

@iota-big3/sdk-security

Version:

Advanced security features including zero trust, quantum-safe crypto, and ML threat detection

27 lines 966 B
/** * Event Bus Adapter for SDK Security * Adapts the actual EventBus to match our SecurityEventBusContract */ import type { EventBus } from '@iota-big3/sdk-events'; import type { SecurityEventBusContract } from '../contracts/events.contract'; export declare class EventsAdapter implements SecurityEventBusContract { private eventBus; constructor(eventBus: EventBus); /** * Emit adapter - converts (event, data) to Event object and handles Promise */ emit(event: string, data: unknown): void; /** * On adapter - wraps handler to extract data from Event object */ on(event: string, handler: (data: unknown) => void): void; /** * Off adapter - not implemented as sdk-events has different signature */ off(event: string, handler: (data: unknown) => void): void; /** * Initialize if the event bus supports it */ initialize(): Promise<void>; } //# sourceMappingURL=events.adapter.d.ts.map