The former first minister announced she will not seek re-election next year.