To use the DomainAvailability API, install the @wix/domains package using npm or Yarn:
@wix/domains
or
Then import { domainAvailability } from @wix/domains:
{ domainAvailability }