/** * On Windows, when EPERM occurs during file removal, try chmod to 0o666 * and retry. This handles read-only files and certain permission modes. */ export declare function fixWinEPERM(path: string, originalError: NodeJS.ErrnoException, callback: (err?: NodeJS.ErrnoException | null) => void): void; /** * Sync version of fixWinEPERM. */ export declare function fixWinEPERMSync(path: string, originalError: NodeJS.ErrnoException): void; /** * Check if an error is EPERM on Windows and should be handled with chmod fix. */ export declare function shouldFixEPERM(err: NodeJS.ErrnoException): boolean;