Heat pumps can also operate in the cooling mode. Air conditioners and refrigerators are examples of heat pumps operating in the cooling mode.
Energy is absorbed into the circulating fluid in the interior coils; then, after the fluid is compressed, energy leaves the fluid through the external coils.