The outcome of the US presidential election could be known as soon as Election Day — or it could take weeks to confirm.