WASHINGTON — President Trump on Thursday reassured North Korean dictator Kim Jong Un that he would remain in power under a nuclear deal with the United States, emphasizing that his administration is not seeking regime change amid threats from Pyongyang to cancel a historic summit next month.

In impromptu remarks at the White House, Trump sharply contradicted national security adviser John Bolton, who had said the administration would ask North Korea to emulate the “Libya model” from 2003 in which the Moammar Gaddafi regime fully relinquished its nascent nuclear weapons program.

A top Kim aide blasted Bolton this week, blaming the Libya deal for Gaddafi’s eventual downfall in an internationally backed popular uprising in 2011.

“The Libya model isn’t the model that we have at all when we’re thinking of North Korea,” Trump said. “In Libya, we decimated that country.”

By contrast, Trump added, a deal with North Korea “would be with Kim Jong Un, something where he’d be there, he’d be in his country, he’d be running his country, his country would be very rich, his country would be very industrious.”

Secretary of State Mike Pompeo, who has met with Kim twice in Pyongyang over the past two months, has reportedly told him that the United States is not seeking his removal from power.