/** * * @param cb polling function retuning a boolean (`false` if pending, `true` if resolved). If this rejects, then polling will stop, and the return promise rejects as well * @param interval number of milliseconds between each attempt, while still pending * @param timeout number of milliseconds after which to reject unconditionally * @returns a Promise which is fulfilled after a `resolved` state is returned from the function, or rejects if either the caller rejects, or timeout is exceeded */ export default function poll( cb: () => Promise, interval?: number, timeout?: number, ): Promise;