/* eslint no-unused-vars: 0 */ import type { ApolloClient } from '@apollo/client/core/index.js' import type { App, AsyncComponentOptions, ComponentOptions } from 'vue' import type { ErrorHandler, VueApolloComponentOptions, WatchLoading, } from './options' export type VueApolloComponent = VueApolloComponentOptions | AsyncComponentOptions export interface ApolloProviderOptions { defaultClient: ApolloClient defaultOptions?: VueApolloComponentOptions clients?: { [key: string]: ApolloClient } watchLoading?: WatchLoading errorHandler?: ErrorHandler prefetch?: boolean } export class ApolloProvider { constructor(options: ApolloProviderOptions) install(app: App): void clients: { [key: string]: ApolloClient } defaultClient: ApolloClient }