public function scopeByDomain(Builder $query, Domain $domain): Builder; }