/**
 * Route emitters — typed wrappers for RouteEvent domain.
 */
import { createEventEnvelope } from '@pellux/goodvibes-sdk/platform/runtime/events/envelope';
function routeEvent(type, data, ctx) {
    return createEventEnvelope(type, { type, ...data }, ctx);
}
export function emitRouteBindingCreated(bus, ctx, data) {
    bus.emit('routes', routeEvent('ROUTE_BINDING_CREATED', data, ctx));
}
export function emitRouteBindingUpdated(bus, ctx, data) {
    bus.emit('routes', routeEvent('ROUTE_BINDING_UPDATED', data, ctx));
}
export function emitRouteBindingResolved(bus, ctx, data) {
    bus.emit('routes', routeEvent('ROUTE_BINDING_RESOLVED', data, ctx));
}
export function emitRouteReplyTargetCaptured(bus, ctx, data) {
    bus.emit('routes', routeEvent('ROUTE_REPLY_TARGET_CAPTURED', data, ctx));
}
export function emitRouteBindingFailed(bus, ctx, data) {
    bus.emit('routes', routeEvent('ROUTE_BINDING_FAILED', data, ctx));
}
