The containing class is available as SQL\ScalarFormat in the www repository.
SQL\ScalarFormat
public function format_d( ?int $int, ): string;
?int $int
string