ALEXANDRIA, EGYPT, SEPT. 8 -- Secretary of State James A. Baker III ended three days of hectic Middle East diplomacy today with Egyptian President Hosni Mubarak urging the United States to continue its hard line against Iraqi President Saddam Hussein.

Both Mubarak and Saudi Arabia's King Fahd, in separate sessions with Baker, appear to have taken similar positions that there should be no bargaining with Iraq until it withdraws from Kuwait.

Mubarak also expressed concern that Saddam could remain a regional threat even after the immediate crisis is resolved. The Egyptian president said he intends to send fresh troops to join the multinational force in Saudi Arabia. He did not say how many troops Egypt would add, but U.S. officials said this week that Egypt and Saudi Arabia had agreed that two army divisions with tanks and artillery -- a total of 30,000 soldiers -- would join the 2,000 Egyptians already in Saudi Arabia.

After a lengthy, private talk with Mubarak this morning at his summer headquarters here, Baker stressed that there should be no deals contemplated with Saddam until he complies with United Nations resolutions calling for Iraq to withdraw from Kuwait and restore its government.

"We agree strongly with you . . . {that} there should not be any settlements or agreements that in any way minimize or diminish the content and substance of those resolutions," Baker said.

In leading the global effort to isolate Saddam, the United States is trying to guard against any temptation for deal-making that could weaken the resolve of Arab leaders to stand firm against Iraq. Although these officials believe Saddam may eventually try to strike a bargain with his Arab neighbors, they said the U.S. approach is to discourage any diplomatic moves in that direction for now while continuing to apply pressure on Baghdad with the embargo and military buildup.

A senior administration official familiar with Baker's conversations in Saudi Arabia, Egypt and the United Arab Emirates said the Persian Gulf states want both superpowers to remain firm against Iraq. "Primarily what they want to see is that the Soviets are still committed to the full and complete enforcement of the U.N. sanctions and that we're not going to find the Soviets engaging in efforts to try and compromise the content and substance of those resolutions," the official said.

When Baker arrived here, Mubarak invited him into 1 1/2 hours of talks with no advisers present. Baker refused to discuss what Mubarak had told him, saying he wanted to reveal the details directly to President Bush at his meeting with Soviet President Gorbachev in Helsinki this weekend.

Earlier, the Saudi foreign minister, Prince Saud Faisal, had struck a similar note about refusing to negotiate with Saddam after a series of unscheduled meetings with Baker in Jiddah, the Saudi capital, Thursday and Friday. The U.N. resolutions calling on Iraq to leave Kuwait and restore its leaders are "not a negotiating issue," he said. Both Saudi Arabia and Egypt have been at the forefront of those Arab nations urging the United States in recent weeks to stand firm against Saddam. Both Egypt and Saudi Arabia, as well as other nations in the region, including Israel, believe it would be a mistake to let Saddam retreat from Kuwait with no further action to curtail his military might and quest for regional dominance. Mubarak told reporters today that "peace will never go" as long as Saddam possesses chemical arms and ballistic missiles.

Baker has said the United States also agrees on the need to curb Saddam in the long run. Bush and Baker have been deliberately vague about whether the United States would use military force to accomplish this. But Baker talked this week in terms of setting up new "regional security structures" for the region. He has not been specific, however, about how such an organization would work, and it seemed to puzzle some officials in the region.

In addition to the diplomatic track, Baker has been sounding out leaders here about joint military action. Officials said it will be several weeks before any serious military choices can be made, because the buildup is not yet complete. The topic has come up in Baker's discussions here. The diplomatic and military options "are not necessarily mutually exclusive at this stage," said the senior administration official. "It is not unreasonable to be thinking about and discussing with other interested parties and countries allied with us what the various options are."

The official said, "I haven't heard anybody suggest unilateral United States military action," but rather "I've heard a lot of talk about action by the multinational force" acting under the United Nations charter.

Mubarak said, "We would like, first of all, to try peaceful solutions." But he indicated that he did not want a long standoff. He said it might take a few months to see if the economic sanctions work, but "I'm telling you that doesn't mean it's going to . . . {be} for one year."

Mubarak expressed hope that the U.S.-Soviet summit that begins in Helsinki Sunday would produce a common stand by Bush and Soviet President Mikhail Gorbachev on the gulf crisis. "I hope that Bush and Gorbachev have one line for dealing with this problem," he said. "And I don't like any differences because this would be a hell of a problem in this area if there are differences."