export interface ThrottleOptions { /** * Fire immediately on the first call. */ start?: boolean; /** * Fire as soon as `wait` has passed. */ middle?: boolean; /** * Cancel after the first successful call. */ once?: boolean; } interface Throttler { (...args: T): void; cancel(): void; } export declare function throttle(callback: (...args: T) => unknown, wait?: number, { start, middle, once }?: ThrottleOptions): Throttler; export declare function debounce(callback: (...args: T) => unknown, wait?: number, { start, middle, once }?: ThrottleOptions): Throttler; export {}; //# sourceMappingURL=index.d.ts.map