import { Switch } from 'react-router'; import { History, Location } from 'history'; import { App, Init, View, Subscribe, OnUpdate } from 'hydux'; import { ActionsType } from 'hydux/lib/types'; export { History, Location, Switch }; export declare type RouterActions = Actions & { history: { push(path: string, state?: any): void; replace(path: string, state?: any): void; go(n: number): void; goBack(): void; goForward(): void; }; }; export declare type RouterState = State & { location: Location; }; export declare function ConnectedSwitch(props: any, {router}: { router: any; }): any; export declare type PropsWithRouter = { init: Init; view: View>; actions: ActionsType>; subscribe?: Subscribe; onRender?: (view: any) => void; onError?: (err: Error) => void; onUpdate?: OnUpdate; }; export default function withReactRouter(history: History): (app: App, RouterActions>) => (props: PropsWithRouter) => any;