export default function retry(fn: (...a: any[]) => T, max?: number, waitInMS?: number, bind?: any): () => Promise;