import { ForceOverwrite } from './enums'; export interface Destination { outDir: string; outFile: string; } export declare function getDestination(entryFiles: string, target: string): Destination; export declare function removeAny(target: string): Promise; export declare function removeDirectory(targetDir: string): Promise; export declare function createDirectory(targetDir: string): Promise; export declare function getEntryFiles(content: string, basePath: string): Promise; export declare function makeTempDir(prefix: string): Promise; export declare function checkExists(target: string): Promise; export declare function checkExistingDirectory(target: string): Promise; export declare function checkIsDirectory(target: string): Promise; export declare function getFileNames(target: string): Promise; export declare function findFile(topDir: string, fileName: string | Array, stopDir?: string): Promise; export declare function matchAnyPilet(baseDir: string, patterns: Array): Promise; export declare function matchFiles(baseDir: string, pattern: string): Promise; export declare function createFileIfNotExists(targetDir: string, fileName: string, content: Buffer | string, forceOverwrite?: ForceOverwrite): Promise; export declare function updateExistingFile(targetDir: string, fileName: string, content: string): Promise; export declare function getHash(targetFile: string): Promise; export declare function mergeWithJson(targetDir: string, fileName: string, newContent: T): Promise; export declare function readJson(targetDir: string, fileName: string, defaultValue?: {}): Promise; export declare function readBinary(targetDir: string, fileName: string): Promise>; export declare function readText(targetDir: string, fileName: string): Promise; export declare function writeJson(targetDir: string, fileName: string, data: T, beautify?: boolean): Promise; export declare function writeText(targetDir: string, fileName: string, content: string): Promise; export declare function writeBinary(targetDir: string, fileName: string, data: Buffer): Promise; export declare function updateExistingJson(targetDir: string, fileName: string, newContent: T): Promise; export declare function copy(source: string, target: string, forceOverwrite?: ForceOverwrite): Promise; /** * @deprecated Will be removed with v1. Please use "removeFile". */ export declare function remove(target: string): Promise; export declare function removeFile(target: string): Promise; export declare function move(source: string, target: string, forceOverwrite?: ForceOverwrite): Promise; export declare function getSourceFiles(entry: string): Promise<{ path: string; directory: string; name: string; read(): Promise; }[]>;