Outside air is the heat source of air source heat pumps. In other words the refrigerant circulating in heat pump cycle extract energy from the outside air and transfers this energy to the house.
In cooling mode the cycle operates in reverse direction and the energy is extracted from the house and transferred to the outside air.
Almost all heat pumps have automatic defrost function and by the aid of this property even in coldest times heat pumps operate without any problem