import { TransformerPath } from '../types/runner'; /** * Filters out the list of file paths containing the given extension * @param files List of file paths * @param extensions Extensions of the file to filter out from the given list * @returns list of filtered files list */ export declare const filterFiles: (files: string[], extensions: string[]) => string[][]; /** * Returns the path to the transform file used by JSCodeshift * @param transformer Partial path to the transform file * @param ext Extension of the transform file */ export declare const getTransformFile: (transformer: TransformerPath, ext?: 'ts' | 'js') => string; /** * Creates a directory in the OS temp directory where temporary files will be stored * @param prefix Prefix for the temp directory * @returns The path to the created temp directory */ export declare const initTempDir: (prefix: string) => Promise; /** * Saves data into a temporary file storage * @param data Data to be stored * @param dirPath Path to the temporary directory where a temp file will be created */ export declare const saveTempData: (data: T, dirPath: string) => Promise; /** * Reads and returns the data from the temporary file storage * @param dirPath Path to temp directory * @param cleanup Should delete temp directory * @returns Data merged from all the files in the temp directory */ export declare const readTempData: (dirPath: string, cleanup?: boolean) => Promise;