import { Singleton } from '@ephox/katamari';
import { nuState } from '../common/BehaviourState';
export const init = () => {
    const blocker = Singleton.destroyable();
    const blockWith = (destroy) => {
        blocker.set({ destroy });
    };
    return nuState({
        readState: blocker.isSet,
        blockWith,
        clear: blocker.clear,
        isBlocked: blocker.isSet
    });
};
//# sourceMappingURL=BlockingState.js.map