**What would you like to be added**: The interfaces in /src/components/CodeEditor/declarations are copied from the grafana library. **Why is this needed**: * Duplicated code is not good * Adding new libraries would be easier (like d3) Is this possible in principle?