import Log from './Log'; import Storage from './Storage'; import Cache from './Cache'; import { ApolloPersistOptions, PersistenceMapperFunction } from './types'; export interface PersistorConfig { log: Log; cache: Cache; storage: Storage; } export default class Persistor { log: Log; cache: Cache; storage: Storage; maxSize?: number; paused: boolean; persistenceMapper?: PersistenceMapperFunction; constructor({ log, cache, storage }: PersistorConfig, options: Pick, 'maxSize' | 'persistenceMapper'>); persist(): Promise; restore(): Promise; purge(): Promise; }