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