export interface Cancelable { clear(): void; } export default function debounce any>( func: T, wait?: number ): T & Cancelable;