Remove exports that don't exist anymore.
Fix some declarations and remove a bunch of exports.