UNPKG

@wandelbots/wandelbots-js-react-components

Version:

React UI toolkit for building applications on top of the Wandelbots platform

26 lines 1.01 kB
import type { TimerState } from "./types"; interface UseTimerLogicProps { autoStart: boolean; onCycleEnd?: () => void; onMeasuringComplete?: () => void; hasError: boolean; onPauseAnimation: () => void; onErrorAnimation: () => void; onClearErrorAnimation: () => void; onStartPulsating: (onComplete?: () => void) => void; } export declare const useTimerLogic: ({ autoStart, onCycleEnd, onMeasuringComplete, hasError, onPauseAnimation, onErrorAnimation, onClearErrorAnimation, onStartPulsating, }: UseTimerLogicProps) => { timerState: TimerState; controls: { startNewCycle: (maxTimeSeconds?: number, elapsedSeconds?: number) => void; startMeasuring: (elapsedSeconds?: number) => void; startCountUp: (elapsedSeconds?: number) => void; setIdle: () => void; completeMeasuring: () => void; pause: () => void; resume: () => void; isPaused: () => boolean; }; }; export {}; //# sourceMappingURL=useTimerLogic.d.ts.map