/** * Creates a throttled function that only invokes `func` at most once per every `wait` milliseconds. * * @param {Function} func - The function to throttle. * @param {number} wait - The number of milliseconds to throttle invocations to. * @param {Object} options - The options object. * @param {boolean} [options.leading=true] Specify invoking on the leading edge of the timeout. * @param {boolean} [options.trailing=true] Specify invoking on the trailing edge of the timeout. * @returns {Function} - Returns the new throttled function. */ declare const throttle: any>(func: T, wait: number, options?: { leading?: boolean; trailing?: boolean; }) => (...args: Parameters) => any; export default throttle;