/// import { Component, ValidationMap } from 'react'; import { History } from 'history'; import { Store, RouterStoreState } from './Store'; import { Match, ValOrFunc, ToProps } from './utils'; export declare type RedirectPropsTyped

= { to: ToProps; match?: ValOrFunc; push?: boolean; noSubscribe?: boolean; switchIndex?: number; }; export declare type RedirectProps = RedirectPropsTyped; export declare type RedirectContext = { routerStore: Store; router: { history: History; }; }; export declare class Redirect extends Component { static displayName: string; static contextTypes: ValidationMap; context: RedirectContext; private unsubscribe; constructor(props: RedirectProps, context: RedirectContext); componentDidMount(): void; UNSAFE_componentWillReceiveProps(nextProps: RedirectProps): void; render(): JSX.Element | null; componentWillUnmount(): void; private update(props); }