// node:fs shim — CF Workers have no filesystem
export function readFileSync() { return ''; }
export function writeFileSync() {}
export function existsSync() { return false; }
export function mkdirSync() {}
export function readdirSync() { return []; }
export function statSync() { return { isFile: () => false, isDirectory: () => false }; }
export function unlinkSync() {}
export const promises = {
  readFile: async () => '',
  writeFile: async () => {},
  mkdir: async () => {},
  readdir: async () => [],
  stat: async () => ({ isFile: () => false, isDirectory: () => false }),
  unlink: async () => {},
  access: async () => { throw new Error('ENOENT'); },
};
export function createReadStream() { throw new Error('fs not available in CF Workers'); }
export function createWriteStream() { throw new Error('fs not available in CF Workers'); }
export default { readFileSync, writeFileSync, existsSync, mkdirSync, readdirSync, statSync, unlinkSync, promises, createReadStream, createWriteStream };
