import { ErrorInterface, SuccessInterface } from "../../config/Interfaces/Helper/response.helper.interface"; export default class FolderManager { private readonly fileSystem; private readonly fileSystemSync; private readonly responseHelper; private readonly WorkerProcess; constructor(); CreateDirectory(path: string): Promise; DeleteDirectory(path: string): Promise; DirectoryExists(path: string): Promise; ListDirectory(path: string): Promise; MoveDirectory(oldPath: string, newPath: string): Promise; UnlockDirectory(path: string): Promise; /** Handles permission issues by temporarily modifying permissions if needed. */ GetDirectorySize(path: string): Promise; /** * Recursively prepares a directory and its contents for size calculation * by temporarily modifying permissions if needed. */ private prepareDirectoryForSizeCalculation; private restoreDirectoryPermissions; /** * Calculates directory size recursively using Node.js native functions. * This is a fallback method for when command-line tools fail. */ private calculateDirectorySizeRecursively; }