BROOKLYN - An agreement has been reached to avert a Long Island Rail Road strike.

"It's my pleasure to announce today that we have settled a four-year dispute dealing with the Long Island Rail Road labor unions," said Gov. Andrew Cuomo, who personally guided the negotiations in the closing hours.

Cuomo says he believes the deal is fair and reasonable for both sides.

Borough President Eric Adams spoke publicly earlier in the day, saying that he was confident in a resolution. However, he also expressed concerns that no plan had been made to assist Brooklyn commuters, even though a contingency plan was in place for Long Islanders heading to the city.

A strike would have affected roughly 300,000 commuters who rely on the LIRR daily, including many who travel between Brooklyn and Long Island. The three local stations that would have been impacted are Atlantic Terminal, Nostrand Avenue and East New York, which all connect to the transit hub in Jamaica, Queens.

The deal, which still needs to be approved by union members, would give LIRR workers 17 percent raises over 6 1/2 years, and all employees would contribute to their health insurance costs for the first time.