// ../packages/sources/dist/chunk-QOB7RMSO.js
function validateIconValue(value, context) {
  if (value === void 0 || value === null) return void 0;
  if (typeof value !== "string") return void 0;
  if (/^[\p{Emoji}\u200d\ufe0f]+$/u.test(value)) return value;
  if (value.startsWith("http://") || value.startsWith("https://")) return value;
  console.warn(`[${context}] Invalid icon value: "${value}". Only emoji and URLs are supported.`);
  return void 0;
}
function findIconFile(_dirPath) {
  return void 0;
}
async function downloadIcon(_dirPath, _iconUrl, _context) {
  return null;
}
function needsIconDownload(icon, iconPath) {
  if (!icon) return false;
  if (icon.startsWith("http://") || icon.startsWith("https://")) {
    return !iconPath;
  }
  return false;
}
function isIconUrl(value) {
  return value.startsWith("http://") || value.startsWith("https://");
}

export {
  validateIconValue,
  findIconFile,
  downloadIcon,
  needsIconDownload,
  isIconUrl
};
