Soviet Foreign Minister Andrei Groymko and his Polish counterpart, Jozef Czyrek, wound up six hours of talks here today with a statement "emphatically" condemning attempts by the United States "and some other NATO countries" to interfere in Polish affairs.

The statement, carried by the government news agency Tass, said the two ministers stressed that relations between their countries will continue to develop in "accordance" with the Treaty of Warsaw, which established the Warsaw Pact, and the bilateral Soviet-Polish Treaty of Friendship, Cooperation and Mutual Assistance.

Polish sources said that Czyrek, a member of the Polish Politburo, was expected to meet Tuesday with senior Soviet leaders, including perhaps President Leonid Brezhnev, before flying home.

Czyrek is the first senior Polish official known to have visited here since the imposition of martial law in Poland four weeks ago.

There was no information here about the substance of talks today, which concluded with the adoption of a joint communique. The document was expected to be published after Czyrek's departure Tuesday.

The Polish official was believed to have outlined for his Soviet hosts the course of developments in Poland since the military crackdown.

The Tass statement described alleged Western, and in particular American, interference in Polish affairs as a "crude violation" of the U.N. charter and the 1975 Helsinki accords final act. The statement emphasized that the bilateral relations would be further developed "on the basis of the firm alliance, inviolable friendship and all-round cooperation" between Poland and the Soviet Union.

The restrained tone of the statement and the fact that toasts made by the two foreign ministers at a lunch today were not made public was interpreted by Western observers as suggesting Soviet interest in avoiding an escalation in East-West polemics over Poland.