(Bloomberg) -- Senate Majority Leader Mitch McConnell said after meeting with President Donald Trump Thursday that he’s optimistic all sides will agree on spending bills to avoid a partial government shutdown and provide funds for a border wall sought by the president.

“We talked about border security and how to resolve all this, and we’re optimistic we have a way forward," McConnell of Kentucky said after he and Senate Appropriations Chairman Richard Shelby of Alabama met with the president.

Asked what the way forward is, McConnell said, “I’ll tell you when we get it.” He declined to respond to questions about whether Trump would accept fencing as a wall at the U.S.-Mexico border.

“We had a good discussion about funding the government and the other year-end items and were optimistic we’re going to be able to get that done, get the farm bill done," the majority leader said.

Shelby said Trump was in a good mood and "didn’t threaten anything." The senator added, "We’re not going to shut down the government.“

The main obstacle "is the wall funding and how we do it,” Shelby said. He said he offered a proposed compromise to solve the border wall issue but he couldn’t discuss the details yet.

--With assistance from Korey Matthews.

To contact the reporters on this story: Erik Wasson in Washington at ewasson@bloomberg.net;Laura Litvan in Washington at llitvan@bloomberg.net

To contact the editors responsible for this story: Joe Sobczyk at jsobczyk@bloomberg.net, Laurie Asséo, Justin Blum

©2018 Bloomberg L.P.