UNPKG

@rnv/engine-rn-windows

Version:

ReNative Engine to build for Windows platform with react native support.

37 lines 2.01 kB
/** * Copy a file to given destination, replacing parts of its contents. * @param srcPath Path to a file to be copied. * @param destPath Destination path. * @param replacements: e.g. {'TextToBeReplaced': 'Replacement'} * @param contentChangedCallback * Used when upgrading projects. Based on if file contents would change * when being replaced, allows the caller to specify whether the file * should be replaced or not. * If null, files will be overwritten. * Function(path, 'identical' | 'changed' | 'new') => 'keep' | 'overwrite' */ export function copyAndReplace(srcPath: any, destPath: any, replacements: any, contentChangedCallback: any, options: any): Promise<void>; export function copyAndReplaceAll(srcPath: any, destPath: any, relativeDestDir: any, replacements: any, options?: { overwrite: boolean; logging: boolean; }): Promise<void>; export function copyAndReplaceWithChangedCallback(srcPath: any, destRoot: any, relativeDestPath: any, replacements: any, options?: { overwrite: boolean; logging: boolean; }): Promise<void>; export function alwaysOverwriteContentChangedCallback(absoluteSrcFilePath: any, relativeDestPath: any, contentChanged: any, options: any): Promise<"overwrite" | "keep">; export function upgradeFileContentChangedCallback(absoluteSrcFilePath: any, relativeDestPath: any, contentChanged: any, options: any): Promise<"overwrite" | "keep">; /** * Same as 'cp' on Unix. Don't do any replacements. */ export function copyBinaryFile(srcPath: any, destPath: any, cb: any): void; export function createDir(destPath: any): void; /** * Get a source file and replace parts of its contents. * @param srcPath Path to the source file. * @param replacements e.g. {'TextToBeReplaced': 'Replacement'} * @return The contents of the file with the replacements applied. */ export function resolveContents(srcPath: any, replacements: any): string; export function walk(current: any): any; //# sourceMappingURL=index.d.ts.map