The containing class is available as File\TemporaryFile in the www repository.
File\TemporaryFile
public function getHandle(): HH\Lib\File\CloseableReadWriteHandle;
HH\Lib\File\CloseableReadWriteHandle