In this paper, we introduce a general and versatile difference operator for a meromorphic function f, with respect to two distinct meromorphic functions g and h, as follows: \(D_ {g,h}f\left( z \right) :=\frac{f\left( g\left( z \right) \right) -f\left( h\left( z \right) \right) }{g\left( z \right) -h\left( z \right) }\) . This operator not only unifies several classical difference operators including Hahn difference operator, Jackson q-difference operator, and the forward difference operator, but also serves to characterize a wide range of pivotal concepts such as even functions, periodic functions, and uniqueness polynomials. Furthermore, we investigate entire solutions to the Fermat-type functional equation \(f\left( z \right) ^m+\left( D_{g,h}f\left( z \right) \right) ^n=1\) , where m, n are positive integers, g and h are distinct entire functions.