import * as React from 'react'; import { match as Match, RouteComponentProps } from 'react-router-dom'; import { History, Location } from 'history'; import { AsyncRouteProps, ServerAppState, InitialData, TransitionBehavior } from './types'; export interface AfterpartyProps extends RouteComponentProps { history: History; location: Location; data: ServerAppState; routes: AsyncRouteProps[]; match: Match; transitionBehavior: TransitionBehavior; } export interface AfterpartyState { data?: InitialData; previousLocation: Location | null; currentLocation: Location | null; isLoading: boolean; } declare class Afterparty extends React.Component { state: { data: InitialData; previousLocation: null; currentLocation: Location; isLoading: boolean; }; prefetcherCache: object; NotfoundComponent: React.ComponentType> | React.ComponentType; static defaultProps: { transitionBehavior: TransitionBehavior; }; static getDerivedStateFromProps(props: AfterpartyProps, state: AfterpartyState): { previousLocation: Location | null; currentLocation: Location; isLoading: boolean; } | null; componentDidUpdate(_prevProps: AfterpartyProps, prevState: AfterpartyState): void; prefetch: (pathname: string) => void; render(): JSX.Element; } export declare const After: import("react").ComponentClass, any> & import("react-router").WithRouterStatics; export {};