import { Type } from '@angular/core'; import { ActivatedRouteSnapshot } from '@angular/router'; /** * Determines if the current route is at the specified component. * * This will only work when using the {@link DefaultRouterStateSerializer}. For easy setup, use {@link MtnaDefaultRouterStateModule}. * * @example * someEffect$ = createEffect(() => * this.actions$.pipe( * ofType(...), * concatLatestFrom(() => this.store.select(MtnaDefaultRouterStateSelectors.selectCurrentRoute)), * // Make sure this effect only runs on the HomePageComponent route * filter(([, currentRoute]) => !!currentRoute && isRouteAtComponent(HomePageComponent, currentRoute)), * map(() => ...) * ) * ); * * @param component The component to check if it is currently routed to. * @param snapshot The current route snapshot * @returns Whether the component is currently routed to. */ export declare function isRouteAtComponent(component: Type, snapshot: ActivatedRouteSnapshot): boolean;