import { AccountConfig, ServiceRegistry } from 'handel-extension-api'; import { HandelCoreOptions, HandelFile } from '../datatypes'; export declare function readDirSync(filePath: string): string[] | null; export declare function readFileSync(filePath: string): any; export declare function writeFileSync(filePath: string, data: any): any; export declare function readJsonFileSync(filePath: string): any; /** * Reads the contents of a YAML file in a synchronous manner. Don't * use this if you want to load the file with async io! */ export declare function readYamlFileSync(filePath: string): any; /** * Reads the contents of a YAML file in an async manner. * This behaves similar to readYamlFileSync above, but in an async manner */ export declare function readYamlFileAsync(filePath: string): any; /** * Takes the given directory path and file and replace tags found in the file with * values from the tag list */ export declare function replaceTagInFile(listTag: any, filePath: string, fileName: string): any; /** * Given a Handel file object, returns the parser object for that Handel file version */ export declare function getHandelFileParser(handelFile: HandelFile): any; /** * Gets the App Context from the deploy spec file */ export declare function createEnvironmentContext(handelFile: HandelFile, handelFileParser: any, environmentName: string, accountConfig: AccountConfig, serviceRegistry: ServiceRegistry, options: HandelCoreOptions): any; /** * This nice function came from https://stackoverflow.com/questions/11293857/fastest-way-to-copy-file-in-node-js */ export declare function copyFile(source: string, target: string): Promise<{}>; export declare function copyDirectory(sourceDir: string, targetDir: string): Promise<{}>; /** * Courtesy of https://stackoverflow.com/a/32197381/1031406 */ export declare function deleteFolderRecursive(dirPath: string): void; export declare function makeTmpDir(): string; export declare function documentationUrl(path: string): string;