add typed bindings for framework + a few neccessary ones for GUI

This commits adds typed bindings for `framework` according to the documentation. I also add a few ones to `GUI` that framework depends on.