export default function debounce>(func: (...args: T) => void, wait: number, immediate?: boolean): () => void;