import './fixPolyfills'; import { DocumentNode } from 'graphql'; import { ApolloCache } from '../core/cache'; import { Cache } from '../core/types/Cache'; import { StoreObject, Reference } from '../../utilities'; import { InMemoryCacheConfig, NormalizedCacheObject } from './types'; import { makeVar } from './reactiveVars'; import { Policies } from './policies'; import { OperationVariables } from '../../core'; type BroadcastOptions = Pick, "optimistic" | "onWatchUpdated">; export declare class InMemoryCache extends ApolloCache { private data; private optimisticData; protected config: InMemoryCacheConfig; private watches; private addTypename; private typenameDocumentCache; private storeReader; private storeWriter; private maybeBroadcastWatch; readonly policies: Policies; readonly makeVar: typeof makeVar; constructor(config?: InMemoryCacheConfig); private init; private resetResultCache; restore(data: NormalizedCacheObject): this; extract(optimistic?: boolean): NormalizedCacheObject; read(options: Cache.ReadOptions): T | null; write(options: Cache.WriteOptions): Reference | undefined; modify(options: Cache.ModifyOptions): boolean; diff(options: Cache.DiffOptions): Cache.DiffResult; watch(watch: Cache.WatchOptions): () => void; gc(options?: { resetResultCache?: boolean; resetResultIdentities?: boolean; }): string[]; retain(rootId: string, optimistic?: boolean): number; release(rootId: string, optimistic?: boolean): number; identify(object: StoreObject | Reference): string | undefined; evict(options: Cache.EvictOptions): boolean; reset(options?: Cache.ResetOptions): Promise; removeOptimistic(idToRemove: string): void; private txCount; batch(options: Cache.BatchOptions): TUpdateResult; performTransaction(update: (cache: InMemoryCache) => any, optimisticId?: string | null): any; transformDocument(document: DocumentNode): DocumentNode; transformForLink(document: DocumentNode): DocumentNode; protected broadcastWatches(options?: BroadcastOptions): void; private broadcastWatch; } export {}; //# sourceMappingURL=inMemoryCache.d.ts.map