/** * Removes files and directories. * @param {string} path The path to remove. * @param {boolean} throwOnError Whether to rethrow errors. */ export function removePath(path: string, throwOnError?: boolean): void; /** * Removes files and directories when the process exits. * @param {string} path The path to remove. */ export function removePathOnExitProcess(path: string): void; /** * Visits all files in a directory and executes a callback on each file. * @param {string} dirPath The directory path. * @param {(path: string) => void} visitor The visitor function that gets called for each file. */ export function visitFiles(dirPath: string, visitor: (path: string) => void): void;