import App from 'next/app'; import React from 'react'; import { ApolloContext, InitApolloClient, WithApolloOptions, WithApolloProps } from './types'; export default function withApollo(client: InitApolloClient, options?: WithApolloOptions): (Page: typeof App | (React.ComponentClass & { getInitialProps?(context: import("next").NextPageContext): any; }) | (React.FunctionComponent & { getInitialProps?(context: import("next").NextPageContext): any; }), pageOptions?: WithApolloOptions) => { ({ apollo, apolloState, ...props }: Partial>): any; displayName: string; getInitialProps(pageCtx: ApolloContext): Promise<{}>; };