// test/fixture/node_modules/rc-util/es/warning.js
var warned = {};
function warning(valid, message) {
  if (!valid && console !== void 0) {
    console.error("Warning: ".concat(message));
  }
}
function note(valid, message) {
  if (!valid && console !== void 0) {
    console.warn("Note: ".concat(message));
  }
}
function resetWarned() {
  warned = {};
}
function call(method, valid, message) {
  if (!valid && !warned[message]) {
    method(false, message);
    warned[message] = true;
  }
}
function warningOnce(valid, message) {
  call(warning, valid, message);
}
function noteOnce(valid, message) {
  call(note, valid, message);
}
var warning_default = warningOnce;
export {
  call,
  warning_default as default,
  note,
  noteOnce,
  resetWarned,
  warning,
  warningOnce
};
//# sourceMappingURL=warning.js.map
