import { Fun, Singleton } from '@ephox/katamari';
import { nuState } from '../common/BehaviourState';
const init = () => {
    const timer = Singleton.value();
    const popup = Singleton.value();
    const clearTimer = () => {
        timer.on(clearTimeout);
    };
    const resetTimer = (f, delay) => {
        clearTimer();
        timer.set(setTimeout(f, delay));
    };
    const readState = Fun.constant('not-implemented');
    return nuState({
        getTooltip: popup.get,
        isShowing: popup.isSet,
        setTooltip: popup.set,
        clearTooltip: popup.clear,
        clearTimer,
        resetTimer,
        readState
    });
};
export { init };
//# sourceMappingURL=TooltippingState.js.map