import { Platform } from 'ionic-angular'; import { File } from '@ionic-native/file'; import { LoadOptions, RemoveOptions, SaveOptions, Storage } from './storage'; import { MemoryStorage } from './mem-storage'; export declare class TextFileStorage implements Storage { protected platform: Platform; protected file: File; protected memoryStorage: MemoryStorage; constructor(platform: Platform, file: File, memoryStorage: MemoryStorage); save(options: SaveOptions): Promise; load(options: LoadOptions): Promise; remove(options: RemoveOptions): Promise; protected serialize(content: any): string; protected deserialize(content: string): any; private writeToFile(options); private readFile(options); private removeFile(options); private getMetadata(fileEntry); private createCacheDirectory(dirname); private getRootpath(); private getFilepath(dirname?); }