This interface describes a replace pattern, which can be a string, number array or typed array as well as an object of type Pattern.Bytes, Pattern.Text or Pattern.RegExp.
It is defined as
type Replace = string | number[] | ArrayLike<number> | Bytes | Text | RegExp;