/** * Recursively removes a directory and all its contents. * * This function synchronously deletes the specified directory along with all its subdirectories and files. * It first reads the contents of the directory, then iterates over each item. If the item is a directory, * it recursively calls itself to delete that subdirectory; if the item is a file, it deletes the file directly. * After all contents are removed, it deletes the empty directory. * * @param dirPath The path to the directory that should be removed. * @throws {Error} Throws if the directory does not exist, or if an error occurs during removal. */ export declare function RemoveDirSync(dirPath: string): void;