export const broadcastStatus = (name, channelApi) => {
    return {
        sendStatus: (status, message) => {
            channelApi.postSyncEntryProgress(name, {
                status,
                message,
                done: status === 'idle' || status === 'error',
            });
        },
    };
};
//# sourceMappingURL=broadcastStatus.js.map