/** @license MIT | @cube-dev/ui-kit v0.0.0-canary-f1f3d22 | Cube Dev Team */
//#region src/tasty/utils/warnings.ts
const PREFIX = "Tasty";
function warn(...args) {
	console.warn(`${PREFIX}:`, ...args);
}
function deprecationWarning(condition, { property, name, betterAlternative, reason }) {
	if (condition) return;
	console.group(`⚠️ ${PREFIX}: Deprecation in ${name}`);
	warn(`"${property}" is deprecated, consider better alternative: ${typeof betterAlternative === "function" ? betterAlternative() : betterAlternative}`);
	reason && warn(`Reason: ${typeof reason === "function" ? reason() : reason}`);
	console.groupEnd();
}

//#endregion
export { deprecationWarning, warn };
//# sourceMappingURL=warnings.js.map