import Vue from 'vue'; import { DocumentNode } from 'graphql'; import { ApolloQueryResult, WatchQueryOptions as ApolloWatchQueryOptions } from 'apollo-client'; export declare type QueryFunction = (this: T) => DocumentNode; export declare type VariablesFunction = (this: T) => V; export declare type UpdateFunction = (this: T, data: any) => any; export declare type SkipFunction = (this: T) => boolean; export declare type ReducedQueryOptions = { fetchPolicy?: 'cache-first' | 'network-only' | 'cache-only' | 'no-cache' | 'standby'; } & Pick>; export declare type QueryOptions = { query: QueryFunction | DocumentNode; variables?: VariablesFunction | V; update: UpdateFunction; prefetch?: boolean; skip?: SkipFunction | boolean; loadingKey?: string; } & ReducedQueryOptions; export declare type SmartQueryOptions = { vm: Vue; key: string; ssr: boolean; } & QueryOptions; export declare class SmartQuery { private readonly options; private readonly client; private observableQuery; private subscription; private unwatchProps; constructor(options: SmartQueryOptions); private get skip(); private get variables(); private get query(); private get shouldWatchProps(); private get queryOptions(); private init; start(): void; stop(): void; refetch(): Promise | null>; fetchMore(options: any): Promise | null>; private setValue; private setLoading; prefetch(): Promise; }