Gina Miller says she will take legal action if the next prime minister tries to shut down Parliament.