President Donald Trump says the US and Iran will work closely, while Tehran says it will reopen the Strait of Hormuz as part of a conditional two-week truce.