UNPKG

1.34 kBTypeScriptView Raw
1import { StateParams } from './params/stateParams';
2import { StateDeclaration } from './state/interface';
3import { StateObject } from './state/stateObject';
4import { Transition } from './transition/transition';
5import { Queue } from './common/queue';
6import { Disposable } from './interface';
7/**
8 * Global router state
9 *
10 * This is where we hold the global mutable state such as current state, current
11 * params, current transition, etc.
12 */
13export declare class UIRouterGlobals implements Disposable {
14 /**
15 * Current parameter values
16 *
17 * The parameter values from the latest successful transition
18 */
19 params: StateParams;
20 /**
21 * Current state
22 *
23 * The to-state from the latest successful transition
24 */
25 current: StateDeclaration;
26 /**
27 * Current state (internal object)
28 *
29 * The to-state from the latest successful transition
30 * @internal
31 */
32 $current: StateObject;
33 /**
34 * The current started/running transition.
35 * This transition has reached at least the onStart phase, but is not yet complete
36 */
37 transition: Transition;
38 /** @internal */
39 lastStartedTransitionId: number;
40 /** @internal */
41 transitionHistory: Queue<Transition>;
42 /** @internal */
43 successfulTransitions: Queue<Transition>;
44 dispose(): void;
45}