Her departure could come before US President Donald Trump nominates a replacement and has them confirmed by a Senate majority.