Refugees held by Australia in Papua New Guinea have launched legal action over the closure of a detention centre.
Australia holds asylum seekers arriving by boat in camps on PNG’s Manus Island and the small Pacific nation of Nauru.
The Manus Island centre is scheduled to close later on Tuesday after a PNG court ruled it was unconstitutional.
Detainees argue the closure will immediately breach their human rights over access to water, electricity and security. Many are refusing to leave.
About 600 refugees and asylum seekers do not want to go to temporary accommodation in the Manus Island community, citing fears for their safety.
Last week, Human Rights Watch warned that the group could face “unchecked violence” by locals who had attacked them in the past – sometimes with machetes and rocks.
Australia has consistently ruled out transferring the men to Australia, arguing it would encourage people smuggling and lead to deaths at sea.
However, PNG has said it is Australia’s responsibility to provide ongoing support for the men. The Australian government has not clarified whether it will do so.
The legal injunction by the detainees was was filed in PNG on Tuesday, after a notice said all electricity, drinking water and food would cease at 17:00 local time (07:00 GMT).
Refugee Behrouz Boochani told the BBC on Monday the the refugees would protest peacefully.
Greg Barns, a lawyer assisting with the legal action, said the closure would breach rights enshrined in PNG’s constitution.
“The men are vulnerable to attacks and physical harm so we are seeking to ensure their constitutional rights are not breached and there is a resumption of the basic necessities of life,” he told the BBC.
“The men have been dumped on the street, literally. What is going on is unlawful.”
The application also seeks to prevent the forcible removal of the men to an alternative centre on the island, and for the men to be moved to Australia or a safe third country.
The notice posted on Monday said that PNG defence authorities could enter the centre as early as Wednesday.
Refugees told the BBC that detainees had begun stockpiling water and dry biscuits, as well as setting up makeshift catchments for rainwater.
Refugees can permanently resettle in PNG, apply to live in Cambodia, or request a transfer to Nauru, but advocates say few have taken up these options.
Alternatively, up to 1,250 refugees in PNG and Nauru could be accepted by the US under a resettlement deal.
However, America has not given an estimate of how long the application process will take and it is not obliged accept 1,250.
In October, the UNHCR said 1,700 detainees in the two centres had either been granted refugee status or were awaiting a determination. The claims of a further 400 had been rejected.
Australia first opened Manus Island centre in 2001 before closing it in 2008. It re-opened in 2012.
Earlier this year, Australia offered compensation totalling A$70m (£41m; $53m) to asylum seekers and refugees detained on Manus Island who alleged they had suffered harm while there.
The lawsuit alleged that detainees had been housed in inhumane conditions below Australian standards, given inadequate medical treatment and exposed to systemic abuse and violence.
The government called the deal “prudent”, but denied wrongdoing.