The main export returns a promise.