import { ApolloClient, NormalizedCacheObject } from '@apollo/client'; import { AppProps } from 'next/app'; export type FaustApolloClient = typeof ApolloClient.prototype; export type FaustApolloClientOptions = ConstructorParameters[0]; export declare const APOLLO_STATE_PROP_NAME = "__APOLLO_STATE__"; declare global { interface Window { [APOLLO_STATE_PROP_NAME]: NormalizedCacheObject; } } export declare function createApolloClient(authenticated?: boolean): FaustApolloClient; export declare function getApolloClient(initialState?: null): FaustApolloClient; export declare function getApolloAuthClient(): FaustApolloClient; export declare function addApolloState(client: FaustApolloClient, pageProps: AppProps<{ props: { [key: string]: any; }; revalidate?: number | boolean; }>['pageProps']): AppProps<{ props: { [key: string]: any; }; revalidate?: number | boolean; }>['pageProps']; export declare function useApollo(pageProps: AppProps<{ [key: string]: any; }>['pageProps']): FaustApolloClient;