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

export function spawn(): never {
  return unsupported('child_process.spawn');
}

export function spawnSync(): never {
  return unsupported('child_process.spawnSync');
}

export function execSync(): never {
  return unsupported('child_process.execSync');
}

export function execFileSync(): never {
  return unsupported('child_process.execFileSync');
}

export function execFile(): never {
  return unsupported('child_process.execFile');
}

export default {
  spawn,
  spawnSync,
  execSync,
  execFileSync,
  execFile,
};
