import Cache from "./cache"; export declare type GraphQLResponse = { errors: Object[] | null; data: TData | null; }; export declare type CachedEntry = { error: Object | Object[] | null; data: TData | null; }; export declare type MinimalOnMutationPayload = { refreshActiveQueries: (query: string) => void; }; export declare type OnMutationPayload = { cache: Cache; softReset: (newResults: Object) => void; hardReset: () => void; refresh: () => void; currentResults: TResults; isActive: () => boolean; refreshActiveQueries: (query: string) => void; }; export declare type SubscriptionTrigger = string | RegExp; export declare type SubscriptionItem = { when: SubscriptionTrigger; run(onChangeOptions: MinimalOnMutationPayload, resp?: any, variables?: any): void; }; export declare type BasicSubscriptionEntry = SubscriptionItem & { type: "Basic"; }; export declare type FullSubscriptionItem = { when: SubscriptionTrigger; run(onChangeOptions: OnMutationPayload, resp?: unknown, variables?: unknown): void; }; export declare type FullSubscriptionEntry = FullSubscriptionItem & { type: "Full"; }; export declare type SubscriptionEntry = BasicSubscriptionEntry | FullSubscriptionEntry;