The writer of the books transformed into hit TV series set in Scotland's turbulent past says the saga could soon be coming to an end.