import { Func } from '../typings/types'; interface DebounceFunc any> { (...args: Parameters): void; cancel: Function; } interface Debounce { (wait: number, fn: F): DebounceFunc; (wait: number): (fn: F) => DebounceFunc; } /** * Creates a debounced function that delays invoking `func` until after `wait` * milliseconds have elapsed since the last time the debounced function was * invoked. Delayed function invocation might be cancelled by calling cancel method. * * @param {number} wait The number of milliseconds to delay. * @param {Function} fn The function to debounce. * @returns {Function} Returns the new debounced function. */ declare const _default: Debounce; export default _default;