export default function debounce(fn: (...args: Array) => any): () => Promise;