import { AppVersion } from '@ionic-native/app-version'; import { File } from '@ionic-native/file'; import { IDeviceStartUpService } from './device-start-up-service'; export declare enum FileType { AUDIO = "AUDIO", DOCUMENT = "DOCUMENT", IMAGE = "IMAGE", VIDEO = "VIDEO" } export declare class DeviceFileService implements IDeviceStartUpService { private cordovaAppVersion; private cordovaFile; static readonly SERVICE_NAME = "DeviceFileService"; private _appName; private _fileTypeVsPathMap; private _uploadDir; constructor(cordovaAppVersion: AppVersion, cordovaFile: File); addMediaToGallery(filePath: string): Promise; appendToFileName(fileName: string, attachment?: string): string; clearTemporaryStorage(): Promise; copy(persistent: boolean, sourceFilePath: string): Promise; findFolderPath(persistent: boolean, fileName: string): any; getPersistentRootPath(): string; getTemporaryRootPath(): string; getUploadDirectory(): string; isPersistentType(filePath: string): boolean; isValidPath(filePath: string): Promise; listFiles(folder: string, search: string | RegExp): Promise[]>; newFileName(folder: string, fileName: string): Promise; removeFile(filePath: string): Promise; /** * removes the directory at the specified location. * * @param dirPath absolute path of directory */ removeDir(dirPath: string): Promise; start(): Promise; getServiceName(): string; private createFolderIfNotExists; private findFileType; private setupUploadDirectory; }