export default function debounce(fn: (...args: any[]) => T): () => Promise;