declare function debounce(func: (...args: T) => void, wait?: number, leading?: boolean): { (this: any, ...args: T): void; clear: () => void; }; export { debounce };