import { fireEvent } from "./fire-event" ; declare global { interface HASSDomEvents { "location-changed" : { replace : boolean ; } ; } } export const navigate = ( _node , path , replace = false ) => { if ( replace ) { history . replaceState ( null , "" , path ) ; } else { history . pushState ( null , "" , path ) ; } fireEvent ( window , "location-changed" , { replace } ) ; } ;