import React from 'react'; import { HOCRouter } from './types'; declare type Props = { router: HOCRouter; children: (router: HOCRouter) => React.ReactElement; }; declare const WithRouter: { new (props: any, context: any): { unsubscribe: (() => void) | null; state: { routerState: {}; }; context: { __internalRouter?: import("./types").InternalRouter | undefined; } | null; UNSAFE_componentWillMount(): void; componentWillUnmount(): void; render(): JSX.Element; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly & Readonly<{ children?: React.ReactNode; }>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly<{}>, nextContext: any): boolean; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; componentWillUpdate?(nextProps: Readonly, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly<{}>, nextContext: any): void; }; displayName: string; contextTypes: { __internalRouter: typeof import("./internalRouterContextTypeCheck").default; }; contextType?: React.Context | undefined; }; export default WithRouter; //# sourceMappingURL=WithRouter.d.ts.map