function unsupported(name: string): never {
  throw new Error(`[director/browser-shim] ${name} is not available in the browser`);
}

export async function readFile(): Promise<string> {
  return unsupported('fs.readFile');
}

export async function writeFile(): Promise<void> {
  return unsupported('fs.writeFile');
}

export async function mkdir(): Promise<void> {
  return unsupported('fs.mkdir');
}

export default {
  readFile,
  writeFile,
  mkdir,
};
