WASHINGTON – President Donald Trump's frequent sparring partner, Nancy Pelosi, will become his legislative dance partner – but his relationship with the Democratic leader may not change all that much.

Bipartisan when possible, contentious when necessary.

Noting that Republicans have often targeted Pelosi's leadership in the past, former Trump deputy campaign manager David Bossie said the Democrat – who won support from a majority of her caucus to be the next speaker of the House – "is and has been the gift that keeps on giving."

Bossie, co-author of a new book called "Trump's Enemies: How The Deep State is Undermining the Presidency," said Trump can work with opponents on issues like infrastructure. But, he added, making Pelosi "the face of the Democratic Party" would be a "very good for President Trump's re-election chances in 2020."

More:Democrats back Nancy Pelosi as next House speaker despite calls for fresh leadership

More:Moderate group of Democrats backs Nancy Pelosi's bid for speaker after winning rules changes

Since Democrats won control of the House in this year's midterm elections, Trump has complimented Pelosi, and even offered Republican votes if she needed them to win the speaker's race.

"There are many things we can get along on without a lot of trouble," he told reporters a day after the midterms.

At the same time, Trump continues to bash Pelosi on the campaign trail.

Stumping Monday for Sen. Cindy Hyde-Smith in Mississippi's runoff election, Trump continued to lump in Pelosi with other Democratic targets like Senate Minority Leader Chuck Schumer of New York and California lawmaker Maxine Waters.

"If you let Nancy Pelosi, Maxine Waters, and Chuck Schumer win the Mississippi Senate seat, they will try to erase all of our gains, reverse all of our progress, and impose – you know this – they want to impose their extreme job-killing agenda," Trump said in Biloxi.

The president could work with Pelosi and other Democrats on issues like road and bridge projects, said Corey Lewandowski, former campaign manager and the other co-author of "Trump's Enemies."

The potential problem, he said, is that Democrats who ran on explicitly anti-Trump platforms may pull Pelosi to the left. The incoming speaker from San Francisco is "looking like a moderate" compared to some of her colleagues, Lewandowski said, "and that is a very scary thing for middle America."

This is especially true if some House Democrats mount an impeachment drive over the investigation into Russian meddling in the 2016 presidential election.

Pelosi has downplayed the notion of impeachment, telling PBS' NewsHour "that's not what our caucus is about." She said any such effort "would have to be bipartisan and the evidence would have to be so conclusive."

After Democrats clinched the House majority, Pelosi said she spoke with Trump by phone "about how we could work together." She specifically cited an infrastructure package, saying "that issue has not been a partisan issue."

Bipartisanship, however, will likely have its limits, aides said. Trump and Pelosi are from different political universes, and clashes are inevitable.

"It could be days; it could be months," said Michael Caputo, a former senior adviser on the Trump campaign.

Caputo and others noted that Pelosi has long been a target for Republicans, predating Trump's presidency. Back when Pelosi served as Speaker of the House from 2007 to 2011, GOP candidates made her leadership a 2010 campaign issue – and Republicans recaptured control of the House.

Pelosi is "one of the most well-known foils of the Republican Party," Caputo said.