1 | import { RouterState } from "react-router-redux";
|
2 | import { IAData, IReduxActionConstructor, ISingleReducer, ReduxAction } from "../action";
|
3 | import { VirtualStore } from "../virtual-store";
|
4 | export interface IStateRouter {
|
5 | routing: RouterState;
|
6 | }
|
7 | export declare class routing extends VirtualStore<RouterState> {
|
8 | constructor();
|
9 | defaultValue: RouterState;
|
10 | protected reduce<IData extends IAData>(Action: IReduxActionConstructor<IData, RouterState>, ...reducer: ISingleReducer<RouterState, IData>[]): void;
|
11 | }
|
12 | export declare enum RoutingMethod {
|
13 | push = 0,
|
14 | replace = 1,
|
15 | go = 2,
|
16 | goBack = 3,
|
17 | goForward = 4,
|
18 | }
|
19 | export interface IRoutingData {
|
20 | method: RoutingMethod;
|
21 | url?: string;
|
22 | args?: string[];
|
23 | }
|
24 | export declare class RouteAction extends ReduxAction<IRoutingData> {
|
25 | readonly type: string;
|
26 | constructor(payload: IRoutingData);
|
27 | }
|