UNPKG

1.15 kBTypeScriptView Raw
1import { ComponentRef } from '@angular/core';
2import { ActivatedRoute, NavigationExtras, Router } from '@angular/router';
3import { AnimationBuilder, NavDirection, RouterDirection } from '@ionic/core';
4export declare const insertView: (views: RouteView[], view: RouteView, direction: RouterDirection) => RouteView[];
5export declare const getUrl: (router: Router, activatedRoute: ActivatedRoute) => string;
6export declare const isTabSwitch: (enteringView: RouteView, leavingView: RouteView) => boolean;
7export declare const computeStackId: (prefixUrl: string[], url: string) => string;
8export declare const toSegments: (path: string) => string[];
9export declare const destroyView: (view: RouteView) => void;
10export interface StackEvent {
11 enteringView: RouteView;
12 direction: RouterDirection;
13 animation: NavDirection | undefined;
14 tabSwitch: boolean;
15}
16export interface RouteView {
17 id: number;
18 url: string;
19 stackId: string | undefined;
20 element: HTMLElement;
21 ref: ComponentRef<any>;
22 savedData?: any;
23 savedExtras?: NavigationExtras;
24 unlistenEvents: () => void;
25 animationBuilder?: AnimationBuilder;
26}