/**
 * Configuration options of  FileSystemStorageAdapter and
 *  IndexedDbStorageAdapter .
  export interface IStorageAdapterConfig { dir : string ; name : string ; } /**
 * Interface to be implemented by objects capable of storing binary data
 * in persistent storage.
 */ export interface IStorageAdapter { /**
     * Saves the `data` under the `key` in persistent storage. If the key
     * already exists, throws  StorageEntryAlreadyExistsError .
     *  param { string } key param { string } data returns { Promise < void > } store ( key , data ) : Promise < void > ; param { string } key returns { Promise < string | null > } load ( key ) : Promise < string | null > ; param { string } key returns { Promise < boolean > } exists ( key ) : Promise < boolean > ; param { string } key returns { Promise < boolean > } remove ( key ) : Promise < boolean > ; param { string } key param { string } data update ( key , data ) : Promise < void > ; returns { Promise < void > } clear ( ) : Promise < void > ; returns { Promise < string [ ] > } list ( ) : Promise < string [ ] > ; }