WaterRefractionShader is an addon, and must be imported explicitly, see Installation#Addons.
import { WaterRefractionShader } from 'three/addons/shaders/WaterRefractionShader.js';
Basic water refraction shader.
examples/jsm/shaders/WaterRefractionShader.js