import { MutationOptions } from "apollo-client"; import { OfflineStore, OfflineQueueListener, OfflineQueue, QueueEntryOperation, QueueEntry } from "offix-scheduler"; /** * An OfflineQueue instance for queueing Apollo Client mutations. * The QueueEntries hold MutationOptions objects * which are passed into ApolloClient.mutate() */ export declare type ApolloOfflineQueue = OfflineQueue; /** * An OfflineStore instance for persisting Apollo Client Mutations. * The store persists MutationOptions objects * which can be restored to the OfflineQueue. */ export declare type ApolloOfflineStore = OfflineStore; /** * An interface for reacting to events fired by the * ApolloOfflineQueue. */ export declare type ApolloOfflineQueueListener = OfflineQueueListener; /** * The top level entry held in the ApolloOfflineQueue. * It holds a MutationOptions object which is passed into * ApolloClient.mutate() and also holds the resolve/reject * Promise handlers for OfflineClient.offlineMutate() */ export declare type ApolloQueueEntry = QueueEntry; /** * Found inside an ApolloQueueEntry object. * The ApolloQueueEntryOperation directly holds the * MutationOptions object passed into ApolloClient.mutate() */ export declare type ApolloQueueEntryOperation = QueueEntryOperation;