interface MeshEventEnvelope { readonly id: string; readonly app: string; readonly type: string; readonly payload: TPayload; readonly emittedAt: string; readonly source?: string; } type MeshEventHandler = (event: MeshEventEnvelope) => void | Promise; interface MeshEventBus { emit(type: string, payload: TPayload, source?: string): Promise>; on(type: string, handler: MeshEventHandler): () => void; } declare class MemoryMeshEventBus implements MeshEventBus { private readonly app; private readonly emitter; constructor(app: string); emit(type: string, payload: TPayload, source?: string): Promise>; on(type: string, handler: MeshEventHandler): () => void; } export { MemoryMeshEventBus as M, type MeshEventBus as a, type MeshEventEnvelope as b, type MeshEventHandler as c };