async function getFileInfo(filePath, opts) {
  if (typeof filePath !== "string") {
    throw new TypeError(`expect \`filePath\` to be a string, got \`${typeof filePath}\``);
  }

  const ignorer = await createIgnorer_1(opts.ignorePath, opts.withNodeModules);
  return _getFileInfo({
    ignorer,
    filePath: normalizeFilePath(filePath, opts.ignorePath),
    plugins: opts.plugins,
    resolveConfig: opts.resolveConfig,
    sync: false
  });
}
@param {string} filePath
@param {FileInfoOptions} opts
@returns {Promise<FileInfoResult>}

Please note that prettier.getFileInfo() expects opts.plugins to be an array of paths,
not an object. A transformation from this array to an object is automatically done
internally by the method wrapper. See withPlugins() in index.js.