// export const runtime: Window = new Proxy(_runtime, {
//   get: (_, prop) => {
//     if (typeof _runtime[prop] === 'function') {
//       return _runtime[prop].bind(_runtime);
//     }
//     return _runtime[prop];
//   },
// });

export let runtime = window;

export function registerRuntime(_runtime = window) {
  runtime = _runtime;
}
