type Callback = (...args: any[]) => void; export interface ThrottledFunction extends Function { cancel: () => void; } export declare const throttle: (func: Callback, limit: number) => ThrottledFunction; export {};