const requireNodeModule = (moduleName) => {
    if (typeof window !== 'undefined' && typeof window.require === 'function') {
        return (window.require)(moduleName);
    }
    throw new Error(`Node.js module "${moduleName}" is not available. Ensure nodeIntegration is enabled.`);
};
const mod = requireNodeModule('node:fs');
export default mod;
export const constants = mod.constants;
export const createReadStream = mod.createReadStream;
export const createWriteStream = mod.createWriteStream;
export const existsSync = mod.existsSync;
export const lstatSync = mod.lstatSync;
export const mkdirSync = mod.mkdirSync;
export const mkdtempSync = mod.mkdtempSync;
export const readFileSync = mod.readFileSync;
export const readdirSync = mod.readdirSync;
export const renameSync = mod.renameSync;
export const rmSync = mod.rmSync;
export const statSync = mod.statSync;
export const unlinkSync = mod.unlinkSync;
export const writeFileSync = mod.writeFileSync;
