import Service from '@ember/service'; import RouterService from '@ember/routing/router-service'; import { WindowService } from 'ember-browser-services/types'; /** * This class exists as a bit of a rough polyfill for supporting * native hrefs with anchor tags. * * Ember had planned to do this long ago, but there have been so many problems * with the routing layer, that most new features for routing have been put on hold * until the whole thing can be re-designed and migration plan from old to new figured out. * * A standalone and slightly simpler implementation may be seen here: * https://codesandbox.io/s/custom-link-component-dgbxl?file=/app/components/link.hbs */ declare class NavigationService extends Service { router: RouterService; window: WindowService; handleAnchorClick(event: Event): void; isRouteActive(route: string): boolean; isLinkActive(link: string): boolean; navigateTo(url: string): void; } export { NavigationService as default };