import { ScopedHistory } from 'kibana/public' ; /**
 * This file based on guidance from https://github.com/elastic/eui/blob/master/wiki/react-router.md
 */ let _userHasLeftApp = false ; export function setUserHasLeftApp ( userHasLeftApp ) { _userHasLeftApp = userHasLeftApp ; } export function getUserHasLeftApp ( ) { return _userHasLeftApp ; } export interface AppRouter { history : ScopedHistory ; route : { location : ScopedHistory [ 'location' ] ; } ; } let router ; export function registerRouter ( reactRouter ) { router = reactRouter ; } export function getRouter ( ) { return router ; }