Heatwave conditions are forecast for much of the country as firefighters declare a total fire ban in parts of some states.