import app from './apprun'
export {
  app, Component, View, Action, Update, on, update, event, EventOptions,
  customElement, CustomElementOptions,
  ROUTER_404_EVENT, ROUTER_EVENT, safeHTML
} from './apprun'
import { createElement, render, Fragment, html, svg, run } from './vdom-lit-html';
export { html, svg, render, run }

app.createElement = createElement;
app.render = render;
app.Fragment = Fragment;

export default app;

if (typeof window === 'object') {
  window['React'] = window['_React'] || app;
  window['html'] = html;
  window['svg'] = svg;
  window['run'] = run;
}
