The leader of the Scottish National Party (SNP) wants a referendum either late next year or in early 2019 - by which time she says the terms of the UK's exit from the European Union should have become clear.