The containing class is available as IO\BufferedReader in the www repository.
public function readAllowPartialSuccessAsync(
?int $max_bytes = NULL,
?int $timeout_ns = NULL,
): Awaitable<string>;
?int $max_bytes = NULL?int $timeout_ns = NULL