/** * Creates a debounced version of a synchronous function, which delays invoking * the function until after `wait` milliseconds have elapsed since the last invocation. */ declare const debounce: void>(func: TDebounceCallback, wait: number) => ((...args: Parameters) => void) & { cancel: () => void; }; /** * Creates a debounced version of an asynchronous function, which delays invoking * the function until after `waitTime` milliseconds have elapsed since the last time * the debounced function was invoked. The debounced function returns a promise * that resolves with the return value of the original function, but only for the * latest invocation. */ declare const debounceAsync: Promise>(asyncFunction: TAsyncFunction, waitTime: number) => ((...args: Parameters) => Promise>>) & { cancel: () => void; }; export { debounce, debounceAsync }; //# sourceMappingURL=debounce.d.ts.map