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