Libya's National Oil Corporation (NOC) has managed to extinguish fires in two crude storage tanks at Ras Lanuf.
Last week it revealed what it called "catastrophic damage" to the tanker terminal after an attack by armed militia.
It confirmed the loss of storage tanks two and 12 at the port, cutting crude oil capacity by 400,000 barrels to 550,000 barrels.
Prior to the attack by forces controlled by Ibrahim Jadhran, Ras Lanuf operated five crude oil storage tanks, it said.
NOC warned of an environmental disaster, with tank two in danger of leaking and spreading the blaze to reservoirs one, six and three.
The oil company also said one of its employees was shot in the fighting.
But it said on Sunday: "By the grace of Allah and thanks to the tremendous effort of these teams, storage tanks ablaze at the Ras Lanuf farm were successfully extinguished, following the ejection of the militia allied with Ibrahim Jadhran from the area.
"Despite the severity of the fire damage to storage tanks two and 12, tanks five and six were saved thanks to the exemplary work of personnel on site, thus ensuring the continuity of export operations.
"NOC thanks all Libyan soldiers, firefighters and maintenance crews across the country that put themselves in harm’s way to save the livelihood of the Libyan people."
Specialists are currently determining when operations can resume.