import qs from 'querystring' ; import Client from '../client' ; export default async function getDomainStatus ( client , domain ) { return client . fetch < { available : boolean ; } > ( `/v3/domains/status?${ qs . stringify ( { name : domain } ) }` ) ; }