import { Func } from '../typings/types'; export type ThrottleFunc = (...args: Parameters) => void; export interface Throttle { (wait: number, fn: F): ThrottleFunc; (wait: number): (fn: F) => ThrottleFunc; } /** * Creates a throttled function that only invokes `fn` at most once per * every `wait` milliseconds. `fn` is called in start of `wait` delay * * @param {number} wait The number of milliseconds to throttle invocations to. * @param {Function} fn The function to throttle. */ declare const _default: Throttle; export default _default;