WASHINGTON — President Donald Trump’s former personal lawyer is planning to tell a House committee that Trump knew ahead of time that WikiLeaks had emails damaging to Hillary Clinton’s presidential campaign and that Trump is a “racist,” a “conman” and a “cheat.”

Michael Cohen suggests in prepared testimony obtained by The Associated Press that Trump also implicitly told him to lie about a Moscow real estate project. Cohen has pleaded guilty to lying to Congress about the project, which he says Trump knew about as Cohen was negotiating with Russia during the election.

Cohen says Trump did not directly tell him to lie, but “he would look me in the eye and tell me there’s no business in Russia and then go out and lie to the American people by saying the same thing.”

Cohen says that “in his way, he was telling me to lie.” He adds that lawyers for Trump had “reviewed and edited” the statement in which Cohen falsely said a proposal for a Trump Tower in Moscow had been abandoned in January 2016. Cohen has since acknowledged he continued pursuing the project for months after that.

In the prepared testimony, Cohen apologizes for his actions. “I am ashamed that I chose to take part in concealing Mr. Trump’s illicit acts rather than listening to my own conscience,” he says.

Trump, at a Vietnam hotel before a planned meeting with North Korean leader Kim Jong Un and unable to ignore the drama playing out thousands of miles away, lashed out at Cohen on Twitter, saying that Cohen “did bad things unrelated to Trump” and “is lying in order to reduce his prison time.”

Cohen, ahead of his appearance, said Tuesday that the American people can decide “exactly who is telling the truth” when he testifies Wednesday before the House Oversight and Reform committee, setting the stage for an explosive public hearing that threatens to overshadow Trump’s summit in Vietnam with Kim.

On WikiLeaks, Cohen says in the prepared testimony that he was in Trump’s office in July 2016 when longtime adviser Roger Stone called Trump. Trump put Stone on speakerphone and Stone told him that he had communicated with WikiLeaks founder Julian Assange and that “within a couple of days, there would be a massive dump of emails that would damage Hillary Clinton’s campaign,” according to Cohen.

Trump responded by saying “wouldn’t that be great,” Cohen says.

That month, WikiLeaks released thousands of emails hacked from the Democratic National Committee’s server.

“A lot of people have asked me about whether Mr. Trump knew about the release of the hacked Democratic National Committee emails ahead of time,” Cohen says in the prepared testimony. “The answer is yes.”

Cohen says he does not have direct evidence that Trump colluded with the Russian government during the election, but that he has “suspicions.” Of a meeting in Trump Tower between campaign advisers, including Trump’s oldest son, and a Russian lawyer, Cohen says that Trump had frequently told him that Donald Trump Jr. “had the worst judgment of anyone in the world” and he “would never set up any meeting of any significance alone — and certainly not without checking with his father.”

Cohen, once Trump’s loyal attorney and fixer, has turned on his former boss and cooperated with special counsel Robert Mueller’s Russia investigation. He begins a three-year prison sentence in May after he pleaded guilty to lying to Congress in 2017 and committing campaign finance violations while he was working for Trump.

He met Senate intelligence committee for more than nine hours behind closed doors on Tuesday. Cohen said in brief remarks afterward that he appreciated the opportunity to “clear the record and tell the truth” to the Senate committee after acknowledging he lied to the panel in 2017.

It was the first of three consecutive days of congressional appearances for Cohen. After the public hearing Wednesday, he will appear before the House intelligence panel Thursday, again speaking in private.

Republicans are expected to aggressively attempt to discredit Cohen, given that he has acknowledged lying previously. White House spokeswoman Sarah Sanders said in a statement Tuesday it was “laughable that anyone would take a convicted liar like Cohen at his word, and pathetic to see him given yet another opportunity to spread his lies.”

One Republican House member did more than just question Cohen’s credibility. Florida Republican Matt Gaetz tweeted Tuesday that the world is “about to learn a lot” about Cohen and suggested he knew of disparaging information that could come out during the hearing. Gaetz later apologized and said he was deleting the tweet.

Gaetz, a Trump ally who talks to the president frequently, is not a member of the committee that will question Cohen.

Democrats have been alternately suspicious of Cohen and eager to hear what he has to say. Sen. Mark Warner, the intelligence panel’s top Democrat, suggested in a brief statement to reporters outside Tuesday’s interview that Cohen had provided important information.

“Two years ago when this investigation started I said it may be the most important thing I am involved in in my public life in the Senate, and nothing I’ve heard today dissuades me from that view,” Warner said.

In addition to lying to Congress, Cohen pleaded guilty last year to campaign finance violations for his involvement in payments to two women who allege they had affairs with Trump.

Federal prosecutors in New York have said Trump directed Cohen to arrange the payments to buy the silence of porn actress Stormy Daniels and former Playboy model Karen McDougal in the run-up to the 2016 campaign. Cohen told a judge that he agreed to cover up Trump’s “dirty deeds” out of “blind loyalty.”

Cohen says in his prepared testimony that he lied to the first lady, Melania Trump, about the affairs. Trump has denied that he had the affairs.

“Lying to the First Lady is one of my biggest regrets,” he says. “She is a kind, good person. I respect her greatly – and she did not deserve that.”

Cohen also says he will present the committee with a copy of the check Trump wrote from his personal bank account after he became president to reimburse him for the hush money payments. He claims he has other exhibits as well, including some financial statements.

On the matter of racism, Cohen says the president made racist comments “disparaging African-Americans, saying at one point that black people would never vote for him because they were too stupid.”

Cohen is not expected to discuss matters related to Russia in the public hearing, saving that information for the closed-door interviews with the intelligence committees. House Oversight and Reform Chairman Elijah Cummings has said he doesn’t want to interfere with Mueller’s investigation into Russian interference in the 2016 election and links to Trump’s campaign.

Members of the Oversight panel are expected to ask questions about the campaign finance violations, Trump’s business practices and compliance with tax laws and “the accuracy of the president’s public statements,” according to a memo laying out the scope of the hearing.

___

Associated Press writers Laurie Kellman and Lisa Mascaro contributed from Washington.