async function win32_restoreDisplayConfig(configs, persistent) {
  return new Promise((resolve, reject) => {
    const ran = addon.win32_restoreDisplayConfig(
      configs,
      (_, errorCode) => {
        if (errorCode === 0) {
          resolve();
        } else {
          reject(new Win32Error(errorCode));
        }
      },
      persistent
    );
    if (!ran) {
      resolve();
    }
  });
}
Returns a display configuration suitable for restoration with {@link restoreDisplayConfig}.

@returns {DisplayRestorationConfigurationEntry[]}