import { ICancelable } from './types'; export interface IThrottleOptions { immediate?: boolean; } export default function throttle any>(func: T, wait?: number, options?: IThrottleOptions): T & ICancelable;