Document the new API (now only Promise is exported).