///
import ApolloClient from 'apollo-client';
import { AppContext, default as NextApp } from 'next/app';
import PropTypes from 'prop-types';
import React from 'react';
import { InitApolloClient, WithApolloOptions, WithApolloProps, WithApolloState } from './types';
export default function withApollo(client: InitApolloClient, options?: WithApolloOptions): (App: typeof NextApp) => {
new (props: WithApolloProps): {
apollo: ApolloClient;
render(): JSX.Element;
setState(state: {} | ((prevState: Readonly<{}>, props: WithApolloProps) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callBack?: (() => void) | undefined): void;
props: Readonly<{
children?: React.ReactNode;
}> & Readonly>;
state: Readonly<{}>;
context: any;
refs: {
[key: string]: React.ReactInstance;
};
};
displayName: string;
propTypes: {
apolloState: PropTypes.Requireable;
apollo: PropTypes.Requireable;
};
getInitialProps: (appCtx: AppContext) => Promise<{
apolloState: WithApolloState;
}>;
};