import { type History, createBrowserHistory } from 'history' import type { IGenerateSRVAuthBindings } from './helpers/generateSrvAuthBindings' export {} declare global { interface Window { __ENV?: Record __ENV_MICRO: { [key: string]: Record } __MICROAPP_REGISTRY?: { name: string entry: string container: string loader: (loading: boolean) => void activeRule: string }[] __ASMA__SHELL__?: { history?: History auth_bindings?: IGenerateSRVAuthBindings isLogged?: () => boolean logoutUser?: () => void } _env_cloud?: Record<'adopus' | 'adcuris', Record> _srvUrls?: Record /** * @deprecated * DONT'T USE THIS FIELD ANYMORE * WILL BE REMOVED AT NEXT MAJOR RELEASE */ isLogged: boolean /** * @warning * In MicroApps use window.__ASMA__SHELL__.logoutUser */ logoutUser: () => void wsConnection: any } } export const history = window.__ASMA__SHELL__?.history || createBrowserHistory() export { History, createBrowserHistory }