import { InjectionToken } from '@angular/core' ; import { Navigation , ParamMap , Params } from '@angular/router' ; import { Observable } from 'rxjs' ; internal export interface RouterAdapter { internal url : string ; internal queryParamMap : Observable < ParamMap > ; internal navigate ( queryParams , extras ? ) : Promise < boolean > ; internal getCurrentNavigation ( ) : Pick < Navigation , 'trigger' | 'extras' > | null ; } /**
 * Options to be provided when a navigation is started to update the URL.
 * These options are simply forwarded to Router#navigate.
 */ export interface RouterOptions { replaceUrl ? : boolean ; preserveFragment ? : boolean ; } /**
 * See  RouterOptions .
  export const DefaultRouterOptions = { replaceUrl : true , preserveFragment : true , } ; internal export const NGQP_ROUTER_ADAPTER = new InjectionToken < RouterAdapter > ( 'NGQP_ROUTER_ADAPTER' ) ; /** Injection token to provide  RouterOptions .  export const NGQP_ROUTER_OPTIONS = new InjectionToken < RouterOptions > ( 'NGQP_ROUTER_OPTIONS' ) ;