type ThrottleFn any> = Function & { flush: () => void; }; /** * Creates a throttled function that only invokes `func` at most once per * every `wait` milliseconds. The throttled function comes with a `flush` method to * reset the last time the throttled function was invoked. * * @param func The function to throttle. * @param wait The number of milliseconds to throttle invocations to. * * @returns Returns the new throttled function. */ declare function throttle any>(func: Function, wait: number): ThrottleFn; export { type ThrottleFn, throttle };