import { type DebouncedFunction } from './debounce.js'; export interface ThrottleOptions { /** * Call function on the leading edge. * Defaults to true. */ leading?: boolean; /** * Call function on the trailing edge. * Defaults to true. */ trailing?: boolean; } /** * Create a throttled function that only invokes func at most once per wait ms. * * @param fn - The function to throttle * @param wait - The number of milliseconds to throttle invocations to * @param options - Throttle options * @returns Throttled function * * @example * const throttled = throttleFast(updatePosition, 100) * window.addEventListener('scroll', throttled) * * @example * // Only trailing * const throttled = throttleFast(save, 1000, { leading: false }) */ export declare function throttleFast unknown>(fn: T, wait: number, options?: ThrottleOptions): DebouncedFunction; //# sourceMappingURL=throttle.d.ts.map