What is a reference oscillator which is used in Costas receiver?
The input is a frequency control, a function of the difference between its output and the phase it's tracking. This control comes from another block.

The output is a clock signal, of the correct phase to demodulate the clocked data it's tracking.