import * as React from 'react';
import { WithContextTypes } from '../../types';
export default function withContext<OriginalProps, ExternalProps, InjectedProps>(Consumer: React.ComponentType): (WrappedComponent: React.ComponentClass<OriginalProps & ExternalProps & WithContextTypes<InjectedProps>> | React.StatelessComponent<OriginalProps & ExternalProps & WithContextTypes<InjectedProps>>) => React.ComponentClass<OriginalProps>;
