import { Cell } from '@ephox/katamari';
export const SetupBehaviourCellState = (initialState) => {
    const init = () => {
        const cell = Cell(initialState);
        const get = () => cell.get();
        const set = (newState) => cell.set(newState);
        const clear = () => cell.set(initialState);
        const readState = () => cell.get();
        return {
            get,
            set,
            clear,
            readState
        };
    };
    return {
        init
    };
};
//# sourceMappingURL=BehaviourCellState.js.map