const listeners = new Set();
/** Broadcast a durable-memory status event to all current subscribers. */
export function emitDurableMemoryStatus(status) {
    for (const listener of listeners) {
        listener(status);
    }
}
/** Subscribe to durable-memory status events; returns an unsubscribe function. */
export function subscribeDurableMemoryStatus(listener) {
    listeners.add(listener);
    return () => listeners.delete(listener);
}
//# sourceMappingURL=status.js.map