export default function debounce(fn: Function): () => Promise;