/** * Debounce a function * * Don't call a function until a certain amount of time has passed * without it being called. * * In other words, we intentionally delay invoking `fnc` until after * `delay` milliseconds have elapsed since the last time the debounced. * If it gets called again, we cancel the previous call and start a new timer. * * If you want more features, like arg diffing and return values, see * @slimr/util/memoize */ export declare function debounce any>(fnc: T, delay?: number): (...args: Parameters) => void;