import { ComponentRef } from '@angular/core';
import { ActivatedRoute, NavigationExtras, Router } from '@angular/router';
import type { AnimationBuilder, NavDirection, RouterDirection } from '@ionic/core/components';
export declare const insertView: (views: RouteView[], view: RouteView, direction: RouterDirection) => RouteView[];
/**
 * Whether going from the leaving route to the entering route runs a
 * guard or resolver, any of which could cancel the navigation. Angular
 * only deactivates and activates the routes below the last one the two
 * share, but some checks run on every matched route.
 */
export declare const hasNavigationGuards: (leaving: ActivatedRoute, entering: ActivatedRoute) => boolean;
export declare const getUrl: (router: Router, activatedRoute: ActivatedRoute) => string;
export declare const isTabSwitch: (enteringView: RouteView, leavingView: RouteView | undefined) => boolean;
export declare const computeStackId: (prefixUrl: string[] | undefined, url: string) => string | undefined;
export declare const toSegments: (path: string) => string[];
export declare const destroyView: (view: RouteView | undefined) => void;
export interface StackWillChangeEvent {
    enteringView: RouteView;
    /**
     * `true` if the event is trigged as a result of a switch
     * between tab navigation stacks.
     */
    tabSwitch: boolean;
}
export interface StackDidChangeEvent {
    enteringView: RouteView;
    direction: RouterDirection;
    animation: NavDirection | undefined;
    /**
     * `true` if the event is trigged as a result of a switch
     * between tab navigation stacks.
     */
    tabSwitch: boolean;
}
export interface RouteView {
    id: number;
    url: string;
    stackId: string | undefined;
    element: HTMLElement;
    ref: ComponentRef<any>;
    savedData?: any;
    savedExtras?: NavigationExtras;
    unlistenEvents: () => void;
    animationBuilder?: AnimationBuilder;
    /**
     * The navigation id of the history entry this view was last
     * shown in, or undefined if it was shown without one.
     */
    historyEntryId?: number;
    activatedRoute: ActivatedRoute;
}
