import * as fs from "fs"; import { IFileSystem, IReadFileOptions, IFsStats } from "./declarations"; import { IInjector } from "./definitions/yok"; export declare class FileSystem implements IFileSystem { private $injector; private static DEFAULT_INDENTATION_CHARACTER; private static JSON_OBJECT_REGEXP; constructor($injector: IInjector); zipFiles(zipFile: string, files: string[], zipPathCallback: (path: string) => string): Promise; utimes(path: string, atime: Date, mtime: Date): void; unzip(zipFile: string, destinationDir: string, options?: { overwriteExisitingFiles?: boolean; caseSensitive?: boolean; }, fileFilters?: string[]): Promise; private findFileCaseInsensitive; exists(path: string): boolean; deleteFile(path: string): void; deleteDirectory(directory: string): void; deleteDirectorySafe(directory: string): void; getFileSize(path: string): number; getSize(path: string): number; futureFromEvent(eventEmitter: any, event: string): Promise; createDirectory(path: string): void; readDirectory(path: string): string[]; readFile(filename: string, options?: IReadFileOptions): string | Buffer; readText(filename: string, options?: IReadFileOptions | string): string; readJson(filename: string, encoding?: string): any; writeFile(filename: string, data: string | Buffer, encoding?: string): void; appendFile(filename: string, data: any, encoding?: string): void; writeJson(filename: string, data: any, space?: string, encoding?: string): void; copyFile(sourceFileName: string, destinationFileName: string): void; createReadStream(path: string, options?: { flags?: string; encoding?: BufferEncoding; fd?: number; mode?: number; autoClose?: boolean; emitClose?: boolean; start?: number; end?: number; highWaterMark?: number; }): NodeJS.ReadableStream; createWriteStream(path: string, options?: { flags?: string; encoding?: BufferEncoding; fd?: number; mode?: number; autoClose?: boolean; emitClose?: boolean; start?: number; highWaterMark?: number; }): any; chmod(path: string, mode: any): void; getFsStats(path: string): fs.Stats; getLsStats(path: string): fs.Stats; getUniqueFileName(baseName: string): string; isEmptyDir(directoryPath: string): boolean; isRelativePath(p: string): boolean; ensureDirectoryExists(directoryPath: string): void; rename(oldPath: string, newPath: string): void; renameIfExists(oldPath: string, newPath: string): boolean; symlink(sourcePath: string, destinationPath: string, type?: fs.symlink.Type): void; setCurrentUserAsOwner(path: string, owner: string): Promise; enumerateFilesInDirectorySync(directoryPath: string, filterCallback?: (_file: string, _stat: IFsStats) => boolean, opts?: { enumerateDirectories?: boolean; includeEmptyDirectories?: boolean; }, foundFiles?: string[]): string[]; getFileShasum(fileName: string, options?: { algorithm?: string; encoding?: "hex" | "base64"; }): Promise; readStdin(): Promise; rm(options?: string, ...files: string[]): void; deleteEmptyParents(directory: string): void; realpath(filePath: string): string; private getIndentationCharacter; }