import { Cell, Singleton } from '@ephox/katamari';
import { nuState } from '../common/BehaviourState';
const init = (spec) => {
    const docked = Cell(false);
    const visible = Cell(true);
    const initialBounds = Singleton.value();
    const modes = Cell(spec.modes);
    const readState = () => `docked:  ${docked.get()}, visible: ${visible.get()}, modes: ${modes.get().join(',')}`;
    return nuState({
        isDocked: docked.get,
        setDocked: docked.set,
        getInitialPos: initialBounds.get,
        setInitialPos: initialBounds.set,
        clearInitialPos: initialBounds.clear,
        isVisible: visible.get,
        setVisible: visible.set,
        getModes: modes.get,
        setModes: modes.set,
        readState
    });
};
export { init };
//# sourceMappingURL=DockingState.js.map