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