/** * Throttle utility - limits function execution rate */ export type ThrottledFunction unknown> = { (...args: Parameters): void; cancel: () => void; flush: () => void; }; /** * Creates a throttled function that only invokes `fn` at most once per `wait` milliseconds */ export declare function throttle unknown>(fn: T, wait: number, options?: { leading?: boolean; trailing?: boolean; }): ThrottledFunction; /** * Creates a debounced function that delays invoking `fn` until after `wait` ms * have elapsed since the last time it was invoked */ export declare function debounce unknown>(fn: T, wait: number, options?: { leading?: boolean; maxWait?: number; }): ThrottledFunction; //# sourceMappingURL=throttle.d.ts.map