/** * Actions on useTimeout * * @typedef {IUseTimeoutFnReturn} * @interface IUseTimeoutFnReturn * @public */ export interface IUseTimeoutFnReturn { /** Clears the current timeout */ clear: () => void; /** Clears the current timeout and restarts afresh */ reset: () => void; } /** * Timeout a callback function * * @param {Function} fn Timer callback function * @param {number} ms Milliseconds of the timer * @param {boolean} enabled Whether to open the timer * @returns {IUseTimeoutFnReturn} action on the timeout object */ declare const useTimeout: (fn: ((e?: any) => void) | undefined, ms?: number, enabled?: boolean) => IUseTimeoutFnReturn; export default useTimeout;