/** * Throttle Pattern - Limit execution frequency */ import { ThrottleOptions, ThrottledFunction } from "../types/throttle"; /** * Define a throttled function * * @example * ```typescript * const trackEvent = defineThrottle({ * execute: async () => await analytics.track(), * interval: 1000 // Max once per second * }); * * trackEvent(); // Executes immediately * trackEvent(); // Throttled (skipped) * ``` */ export declare function defineThrottle(options: ThrottleOptions): ThrottledFunction; /** * @deprecated Use `defineThrottle` instead * @see defineThrottle */ export declare const throttle: typeof defineThrottle; //# sourceMappingURL=throttle.d.ts.map